UNPKG

@comake/skl-js-engine

Version:

Standard Knowledge Language Javascript Engine

23 lines 811 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FindOperator = void 0; class FindOperator { constructor(args) { this.type = 'operator'; this.operator = args.operator; this.value = args.value; this.subject = args.subject; this.isOptional = args.isOptional; } static isFindOperator(value) { return typeof value === 'object' && 'type' in value && value.type === 'operator'; } static isPathOperator(operator) { return (operator.operator === 'inversePath' || operator.operator === 'zeroOrMorePath' || operator.operator === 'sequencePath' || operator.operator === 'zeroOrMorePath'); } } exports.FindOperator = FindOperator; //# sourceMappingURL=FindOperator.js.map