@opra/common 1.20.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/browser.js +12 -0
- package/{esm/document → document}/api-document.js +7 -7
- package/{esm/document → document}/common/api-base.js +2 -1
- package/{esm/document → document}/common/data-type-map.js +3 -6
- package/{esm/document → document}/common/document-init-context.js +4 -3
- package/{esm/document → document}/common/document-node.js +4 -0
- package/{esm/document → document}/common/opra-document-error.js +1 -1
- package/{esm/document → document}/common/value.js +4 -0
- package/{esm/document → document}/data-type/api-field.js +1 -0
- package/{types/document → document}/data-type/array-type.d.ts +1 -1
- package/{esm/document → document}/data-type/complex-type-base.js +3 -0
- package/{esm/document → document}/data-type/complex-type.js +1 -0
- package/{esm/document → document}/data-type/extended-types/base64.type.js +1 -0
- package/{esm/document → document}/data-type/extended-types/date-time-tz.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/date-time.type.js +3 -0
- package/{esm/document → document}/data-type/extended-types/date.type.js +3 -0
- package/{esm/document → document}/data-type/extended-types/email.type.js +9 -0
- package/{esm/document → document}/data-type/extended-types/field-path.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/filter.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/partial-date.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/time.type.js +2 -0
- package/{esm/document → document}/data-type/extended-types/uuid.type.js +1 -0
- package/{esm/document → document}/data-type/mapped-type.js +4 -0
- package/{esm/document → document}/data-type/primitive-types/number.type.js +2 -0
- package/{esm/document → document}/data-type/primitive-types/string.type.js +4 -0
- package/{esm/document → document}/data-type/simple-type.js +3 -0
- package/document/decorators/ws-param.decorator.d.ts +7 -0
- package/{esm/document → document}/decorators/ws-param.decorator.js +2 -2
- package/{esm/document → document}/factory/api-document.factory.js +1 -3
- package/{esm/document → document}/factory/ws-api.factory.js +14 -3
- package/{esm/document → document}/http/http-api.js +5 -4
- package/{esm/document → document}/http/http-multipart-field.js +3 -0
- package/{esm/document → document}/http/http-operation-response.js +3 -0
- package/{esm/document → document}/http/http-request-body.js +8 -1
- package/{esm/document → document}/http/http-status-range.js +2 -2
- package/{esm/document → document}/mq/mq-api.js +5 -4
- package/{esm/document → document}/mq/mq-operation-response.js +7 -1
- package/{esm/document → document}/ws/ws-api.js +4 -4
- package/{types/document → document}/ws/ws-operation.d.ts +15 -3
- package/{esm/document → document}/ws/ws-operation.js +10 -2
- package/{esm/exception → exception}/http-errors/bad-request.error.js +1 -4
- package/{esm/exception → exception}/http-errors/conflict.error.js +1 -4
- package/{esm/exception → exception}/http-errors/failed-dependency.error.js +1 -4
- package/{esm/exception → exception}/http-errors/forbidden.error.js +1 -4
- package/{esm/exception → exception}/http-errors/internal-server.error.js +1 -4
- package/{esm/exception → exception}/http-errors/method-not-allowed.error.js +1 -4
- package/{esm/exception → exception}/http-errors/not-acceptable.error.js +1 -4
- package/{esm/exception → exception}/http-errors/not-found.error.js +1 -4
- package/{esm/exception → exception}/http-errors/resource-conflict.error.js +1 -1
- package/{esm/exception → exception}/http-errors/unauthorized.error.js +1 -4
- package/{esm/exception → exception}/http-errors/unprocessable-entity.error.js +1 -4
- package/{esm/exception → exception}/opra-exception.js +5 -1
- package/{esm/exception → exception}/opra-http-error.js +1 -0
- package/filter/antlr/OpraFilterLexer.js +425 -0
- package/filter/antlr/OpraFilterListener.js +302 -0
- package/{esm/filter → filter}/antlr/OpraFilterParser.js +218 -214
- package/filter/antlr/OpraFilterVisitor.js +185 -0
- package/{esm/filter → filter}/ast/abstract/ast.js +1 -0
- package/{esm/filter → filter}/ast/expressions/arithmetic-expression.js +3 -1
- package/{esm/filter → filter}/ast/expressions/array-expression.js +1 -0
- package/{esm/filter → filter}/ast/expressions/comparison-expression.js +4 -0
- package/{esm/filter → filter}/ast/expressions/logical-expression.js +2 -0
- package/{esm/filter → filter}/ast/expressions/negative-expression.js +1 -0
- package/{esm/filter → filter}/ast/expressions/parenthesized-expression.js +1 -0
- package/{esm/filter → filter}/ast/terms/date-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/date-time-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/null-literal.js +1 -1
- package/{esm/filter → filter}/ast/terms/number-literal.js +1 -0
- package/{esm/filter → filter}/ast/terms/time-literal.js +1 -0
- package/{esm/filter → filter}/filter-rules.js +2 -2
- package/{esm/filter → filter}/filter-tree-visitor.js +1 -0
- package/{esm/filter → filter}/opra-error-listener.js +1 -0
- package/{esm/helpers → helpers}/parse-fields-projection.js +2 -0
- package/package.json +15 -35
- package/{types/schema → schema}/ws/ws-api.interface.d.ts +4 -0
- package/browser/index.cjs +0 -12
- package/browser/index.mjs +0 -12
- package/cjs/document/api-document.js +0 -182
- package/cjs/document/common/api-base.js +0 -31
- package/cjs/document/common/data-type-map.js +0 -77
- package/cjs/document/common/document-element.js +0 -34
- package/cjs/document/common/document-init-context.js +0 -69
- package/cjs/document/common/document-node.js +0 -145
- package/cjs/document/common/opra-document-error.js +0 -15
- package/cjs/document/common/value.js +0 -39
- package/cjs/document/constants.js +0 -18
- package/cjs/document/data-type/api-field.js +0 -124
- package/cjs/document/data-type/array-type.js +0 -78
- package/cjs/document/data-type/complex-type-base.js +0 -346
- package/cjs/document/data-type/complex-type.js +0 -127
- package/cjs/document/data-type/data-type.js +0 -67
- package/cjs/document/data-type/enum-type.js +0 -128
- package/cjs/document/data-type/extended-types/base64.type.js +0 -49
- package/cjs/document/data-type/extended-types/date-time-tz.type.js +0 -63
- package/cjs/document/data-type/extended-types/date-time.type.js +0 -76
- package/cjs/document/data-type/extended-types/date.type.js +0 -74
- package/cjs/document/data-type/extended-types/email.type.js +0 -95
- package/cjs/document/data-type/extended-types/field-path.type.js +0 -65
- package/cjs/document/data-type/extended-types/filter.type.js +0 -88
- package/cjs/document/data-type/extended-types/index.js +0 -16
- package/cjs/document/data-type/extended-types/object-id.type.js +0 -31
- package/cjs/document/data-type/extended-types/operation-result.type.js +0 -67
- package/cjs/document/data-type/extended-types/partial-date.type.js +0 -85
- package/cjs/document/data-type/extended-types/time.type.js +0 -55
- package/cjs/document/data-type/extended-types/url.type.js +0 -31
- package/cjs/document/data-type/extended-types/uuid.type.js +0 -37
- package/cjs/document/data-type/mapped-type.js +0 -120
- package/cjs/document/data-type/mixin-type.js +0 -123
- package/cjs/document/data-type/omit-type.js +0 -10
- package/cjs/document/data-type/partial-type.js +0 -12
- package/cjs/document/data-type/pick-type.js +0 -10
- package/cjs/document/data-type/primitive-types/any.type.js +0 -27
- package/cjs/document/data-type/primitive-types/bigint.type.js +0 -38
- package/cjs/document/data-type/primitive-types/boolean.type.js +0 -31
- package/cjs/document/data-type/primitive-types/index.js +0 -11
- package/cjs/document/data-type/primitive-types/integer.type.js +0 -38
- package/cjs/document/data-type/primitive-types/null.type.js +0 -31
- package/cjs/document/data-type/primitive-types/number.type.js +0 -50
- package/cjs/document/data-type/primitive-types/object.type.js +0 -20
- package/cjs/document/data-type/primitive-types/string.type.js +0 -70
- package/cjs/document/data-type/required-type.js +0 -12
- package/cjs/document/data-type/simple-type.js +0 -133
- package/cjs/document/data-type/union-type.js +0 -84
- package/cjs/document/data-type/utils/create-mapped-class.js +0 -56
- package/cjs/document/data-type/utils/get-is-inherited-predicate-fn.js +0 -14
- package/cjs/document/decorators/api-field-decorator.js +0 -50
- package/cjs/document/decorators/complex-type.decorator.js +0 -31
- package/cjs/document/decorators/http-controller.decorator.js +0 -145
- package/cjs/document/decorators/http-operation-entity-create.decorator.js +0 -58
- package/cjs/document/decorators/http-operation-entity-delete-many.decorator.js +0 -41
- package/cjs/document/decorators/http-operation-entity-delete.decorator.js +0 -41
- package/cjs/document/decorators/http-operation-entity-find-many.decorator.js +0 -85
- package/cjs/document/decorators/http-operation-entity-get.decorator.js +0 -56
- package/cjs/document/decorators/http-operation-entity-replace.decorator.js +0 -56
- package/cjs/document/decorators/http-operation-entity-update-many.decorator.js +0 -50
- package/cjs/document/decorators/http-operation-entity-update.decorator.js +0 -66
- package/cjs/document/decorators/http-operation-entity.decorator.js +0 -143
- package/cjs/document/decorators/http-operation.decorator.js +0 -213
- package/cjs/document/decorators/mq-controller.decorator.js +0 -67
- package/cjs/document/decorators/mq-operation.decorator.js +0 -82
- package/cjs/document/decorators/simple-type.decorator.js +0 -67
- package/cjs/document/decorators/ws-controller.decorator.js +0 -51
- package/cjs/document/decorators/ws-operation.decorator.js +0 -42
- package/cjs/document/decorators/ws-param.decorator.js +0 -22
- package/cjs/document/factory/api-document.factory.js +0 -192
- package/cjs/document/factory/data-type.factory.js +0 -647
- package/cjs/document/factory/http-api.factory.js +0 -302
- package/cjs/document/factory/mq-api.factory.js +0 -203
- package/cjs/document/factory/ws-api.factory.js +0 -145
- package/cjs/document/http/http-api.js +0 -40
- package/cjs/document/http/http-controller.js +0 -159
- package/cjs/document/http/http-media-type.js +0 -104
- package/cjs/document/http/http-multipart-field.js +0 -32
- package/cjs/document/http/http-operation-response.js +0 -47
- package/cjs/document/http/http-operation.js +0 -126
- package/cjs/document/http/http-parameter.js +0 -57
- package/cjs/document/http/http-request-body.js +0 -27
- package/cjs/document/http/http-status-range.js +0 -45
- package/cjs/document/index.js +0 -70
- package/cjs/document/mq/mq-api.js +0 -54
- package/cjs/document/mq/mq-controller.js +0 -101
- package/cjs/document/mq/mq-header.js +0 -48
- package/cjs/document/mq/mq-operation-response.js +0 -66
- package/cjs/document/mq/mq-operation.js +0 -101
- package/cjs/document/utils/inspect.util.js +0 -7
- package/cjs/document/utils/parse-regexp.util.js +0 -21
- package/cjs/document/utils/string-compare.util.js +0 -10
- package/cjs/document/utils/test-scope-match.js +0 -15
- package/cjs/document/ws/ws-api.js +0 -52
- package/cjs/document/ws/ws-controller.js +0 -78
- package/cjs/document/ws/ws-operation.js +0 -64
- package/cjs/enums/http-headers-codes.enum.js +0 -411
- package/cjs/enums/http-status-codes.enum.js +0 -300
- package/cjs/enums/http-status-messages.js +0 -68
- package/cjs/enums/index.js +0 -7
- package/cjs/enums/mime-types.enum.js +0 -17
- package/cjs/exception/error-issue.js +0 -2
- package/cjs/exception/http-errors/bad-request.error.js +0 -23
- package/cjs/exception/http-errors/conflict.error.js +0 -22
- package/cjs/exception/http-errors/failed-dependency.error.js +0 -22
- package/cjs/exception/http-errors/forbidden.error.js +0 -25
- package/cjs/exception/http-errors/internal-server.error.js +0 -23
- package/cjs/exception/http-errors/method-not-allowed.error.js +0 -23
- package/cjs/exception/http-errors/not-acceptable.error.js +0 -23
- package/cjs/exception/http-errors/not-found.error.js +0 -26
- package/cjs/exception/http-errors/permission.error.js +0 -20
- package/cjs/exception/http-errors/resource-conflict.error.js +0 -19
- package/cjs/exception/http-errors/resource-not.available.error.js +0 -23
- package/cjs/exception/http-errors/unauthorized.error.js +0 -23
- package/cjs/exception/http-errors/unprocessable-entity.error.js +0 -23
- package/cjs/exception/index.js +0 -20
- package/cjs/exception/issue-severity.enum.js +0 -23
- package/cjs/exception/opra-exception.js +0 -70
- package/cjs/exception/opra-http-error.js +0 -25
- package/cjs/filter/antlr/OpraFilterLexer.js +0 -427
- package/cjs/filter/antlr/OpraFilterListener.js +0 -11
- package/cjs/filter/antlr/OpraFilterParser.js +0 -1851
- package/cjs/filter/antlr/OpraFilterVisitor.js +0 -14
- package/cjs/filter/ast/abstract/ast.js +0 -9
- package/cjs/filter/ast/abstract/expression.js +0 -7
- package/cjs/filter/ast/abstract/literal.js +0 -14
- package/cjs/filter/ast/abstract/term.js +0 -7
- package/cjs/filter/ast/expressions/arithmetic-expression.js +0 -29
- package/cjs/filter/ast/expressions/array-expression.js +0 -14
- package/cjs/filter/ast/expressions/comparison-expression.js +0 -15
- package/cjs/filter/ast/expressions/logical-expression.js +0 -18
- package/cjs/filter/ast/expressions/negative-expression.js +0 -14
- package/cjs/filter/ast/expressions/parenthesized-expression.js +0 -14
- package/cjs/filter/ast/index.js +0 -21
- package/cjs/filter/ast/terms/boolean-literal.js +0 -10
- package/cjs/filter/ast/terms/date-literal.js +0 -28
- package/cjs/filter/ast/terms/date-time-literal.js +0 -27
- package/cjs/filter/ast/terms/external-constant.js +0 -13
- package/cjs/filter/ast/terms/null-literal.js +0 -11
- package/cjs/filter/ast/terms/number-literal.js +0 -39
- package/cjs/filter/ast/terms/qualified-identifier.js +0 -10
- package/cjs/filter/ast/terms/string-literal.js +0 -14
- package/cjs/filter/ast/terms/time-literal.js +0 -34
- package/cjs/filter/build.js +0 -126
- package/cjs/filter/errors.js +0 -21
- package/cjs/filter/filter-rules.js +0 -150
- package/cjs/filter/filter-tree-visitor.js +0 -97
- package/cjs/filter/index.js +0 -5
- package/cjs/filter/opra-error-listener.js +0 -21
- package/cjs/filter/opra-filter.ns.js +0 -8
- package/cjs/filter/parse.js +0 -38
- package/cjs/filter/utils.js +0 -25
- package/cjs/helpers/function-utils.js +0 -15
- package/cjs/helpers/get-stack-filename.js +0 -51
- package/cjs/helpers/index.js +0 -12
- package/cjs/helpers/mixin-utils.js +0 -35
- package/cjs/helpers/object-utils.js +0 -19
- package/cjs/helpers/parse-fields-projection.js +0 -67
- package/cjs/helpers/responsive-map.js +0 -155
- package/cjs/helpers/safe-json-stringify.js +0 -16
- package/cjs/helpers/type-guards.js +0 -46
- package/cjs/i18n/i18n.js +0 -139
- package/cjs/i18n/index.js +0 -10
- package/cjs/i18n/string-utils.js +0 -12
- package/cjs/i18n/translate.js +0 -16
- package/cjs/index.js +0 -14
- package/cjs/package.json +0 -3
- package/cjs/polifils/array-find-last.js +0 -22
- package/cjs/schema/api-document.interface.js +0 -2
- package/cjs/schema/api.interface.js +0 -2
- package/cjs/schema/constants.js +0 -4
- package/cjs/schema/data-type/array-type.interface.js +0 -7
- package/cjs/schema/data-type/complex-type.interface.js +0 -7
- package/cjs/schema/data-type/data-type.interface.js +0 -2
- package/cjs/schema/data-type/enum-type.interface.js +0 -7
- package/cjs/schema/data-type/field.interface.js +0 -2
- package/cjs/schema/data-type/mapped-type.interface.js +0 -7
- package/cjs/schema/data-type/mixin-type.interface.js +0 -7
- package/cjs/schema/data-type/simple-type.interface.js +0 -7
- package/cjs/schema/data-type/union-type.interface.js +0 -7
- package/cjs/schema/data-type-container.interface.js +0 -2
- package/cjs/schema/http/http-api.interface.js +0 -2
- package/cjs/schema/http/http-controller.interface.js +0 -11
- package/cjs/schema/http/http-media-type.interface.js +0 -2
- package/cjs/schema/http/http-multipart-field.interface.js +0 -2
- package/cjs/schema/http/http-operation-response.interface.js +0 -2
- package/cjs/schema/http/http-operation.interface.js +0 -7
- package/cjs/schema/http/http-parameter.interface.js +0 -2
- package/cjs/schema/http/http-request-body.interface.js +0 -2
- package/cjs/schema/http/http-status-range.interface.js +0 -2
- package/cjs/schema/index.js +0 -6
- package/cjs/schema/mq/mq-api.interface.js +0 -2
- package/cjs/schema/mq/mq-controller.interface.js +0 -11
- package/cjs/schema/mq/mq-header.interface.js +0 -2
- package/cjs/schema/mq/mq-operation.interface.js +0 -7
- package/cjs/schema/opra-schema.js +0 -35
- package/cjs/schema/type-guards.js +0 -54
- package/cjs/schema/types.js +0 -2
- package/cjs/schema/value.interface.js +0 -2
- package/cjs/schema/ws/ws-api.interface.js +0 -2
- package/cjs/schema/ws/ws-controller.interface.js +0 -11
- package/cjs/schema/ws/ws-operation.interface.js +0 -7
- package/cjs/types.js +0 -2
- package/esm/filter/antlr/OpraFilterLexer.js +0 -425
- package/esm/filter/antlr/OpraFilterListener.js +0 -8
- package/esm/filter/antlr/OpraFilterVisitor.js +0 -11
- package/esm/helpers/monkey-patches.js +0 -14
- package/esm/package.json +0 -3
- package/types/document/decorators/ws-param.decorator.d.ts +0 -2
- package/types/index.d.cts +0 -9
- /package/{types/document → document}/api-document.d.ts +0 -0
- /package/{types/document → document}/common/api-base.d.ts +0 -0
- /package/{types/document → document}/common/data-type-map.d.ts +0 -0
- /package/{types/document → document}/common/document-element.d.ts +0 -0
- /package/{esm/document → document}/common/document-element.js +0 -0
- /package/{types/document → document}/common/document-init-context.d.ts +0 -0
- /package/{types/document → document}/common/document-node.d.ts +0 -0
- /package/{types/document → document}/common/opra-document-error.d.ts +0 -0
- /package/{types/document → document}/common/value.d.ts +0 -0
- /package/{types/document → document}/constants.d.ts +0 -0
- /package/{esm/document → document}/constants.js +0 -0
- /package/{types/document → document}/data-type/api-field.d.ts +0 -0
- /package/{esm/document → document}/data-type/array-type.js +0 -0
- /package/{types/document → document}/data-type/complex-type-base.d.ts +0 -0
- /package/{types/document → document}/data-type/complex-type.d.ts +0 -0
- /package/{types/document → document}/data-type/data-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/data-type.js +0 -0
- /package/{types/document → document}/data-type/enum-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/enum-type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/base64.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date-time-tz.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date-time.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/date.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/email.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/field-path.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/filter.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/index.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/index.js +0 -0
- /package/{types/document → document}/data-type/extended-types/object-id.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/object-id.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/operation-result.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/operation-result.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/partial-date.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/time.type.d.ts +0 -0
- /package/{types/document → document}/data-type/extended-types/url.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/extended-types/url.type.js +0 -0
- /package/{types/document → document}/data-type/extended-types/uuid.type.d.ts +0 -0
- /package/{types/document → document}/data-type/mapped-type.d.ts +0 -0
- /package/{types/document → document}/data-type/mixin-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/mixin-type.js +0 -0
- /package/{types/document → document}/data-type/omit-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/omit-type.js +0 -0
- /package/{types/document → document}/data-type/partial-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/partial-type.js +0 -0
- /package/{types/document → document}/data-type/pick-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/pick-type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/any.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/any.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/bigint.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/bigint.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/boolean.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/boolean.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/index.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/index.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/integer.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/integer.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/null.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/null.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/number.type.d.ts +0 -0
- /package/{types/document → document}/data-type/primitive-types/object.type.d.ts +0 -0
- /package/{esm/document → document}/data-type/primitive-types/object.type.js +0 -0
- /package/{types/document → document}/data-type/primitive-types/string.type.d.ts +0 -0
- /package/{types/document → document}/data-type/required-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/required-type.js +0 -0
- /package/{types/document → document}/data-type/simple-type.d.ts +0 -0
- /package/{types/document → document}/data-type/union-type.d.ts +0 -0
- /package/{esm/document → document}/data-type/union-type.js +0 -0
- /package/{types/document → document}/data-type/utils/create-mapped-class.d.ts +0 -0
- /package/{esm/document → document}/data-type/utils/create-mapped-class.js +0 -0
- /package/{types/document → document}/data-type/utils/get-is-inherited-predicate-fn.d.ts +0 -0
- /package/{esm/document → document}/data-type/utils/get-is-inherited-predicate-fn.js +0 -0
- /package/{types/document → document}/decorators/api-field-decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/api-field-decorator.js +0 -0
- /package/{types/document → document}/decorators/complex-type.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/complex-type.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-create.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-create.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-delete-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-delete-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-delete.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-delete.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-find-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-find-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-get.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-get.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-replace.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-replace.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-update-many.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-update-many.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity-update.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity-update.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation-entity.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation-entity.decorator.js +0 -0
- /package/{types/document → document}/decorators/http-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/http-operation.decorator.js +0 -0
- /package/{types/document → document}/decorators/mq-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/mq-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/mq-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/mq-operation.decorator.js +0 -0
- /package/{types/document → document}/decorators/simple-type.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/simple-type.decorator.js +0 -0
- /package/{types/document → document}/decorators/ws-controller.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/ws-controller.decorator.js +0 -0
- /package/{types/document → document}/decorators/ws-operation.decorator.d.ts +0 -0
- /package/{esm/document → document}/decorators/ws-operation.decorator.js +0 -0
- /package/{types/document → document}/factory/api-document.factory.d.ts +0 -0
- /package/{types/document → document}/factory/data-type.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/data-type.factory.js +0 -0
- /package/{types/document → document}/factory/http-api.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/http-api.factory.js +0 -0
- /package/{types/document → document}/factory/mq-api.factory.d.ts +0 -0
- /package/{esm/document → document}/factory/mq-api.factory.js +0 -0
- /package/{types/document → document}/factory/ws-api.factory.d.ts +0 -0
- /package/{types/document → document}/http/http-api.d.ts +0 -0
- /package/{types/document → document}/http/http-controller.d.ts +0 -0
- /package/{esm/document → document}/http/http-controller.js +0 -0
- /package/{types/document → document}/http/http-media-type.d.ts +0 -0
- /package/{esm/document → document}/http/http-media-type.js +0 -0
- /package/{types/document → document}/http/http-multipart-field.d.ts +0 -0
- /package/{types/document → document}/http/http-operation-response.d.ts +0 -0
- /package/{types/document → document}/http/http-operation.d.ts +0 -0
- /package/{esm/document → document}/http/http-operation.js +0 -0
- /package/{types/document → document}/http/http-parameter.d.ts +0 -0
- /package/{esm/document → document}/http/http-parameter.js +0 -0
- /package/{types/document → document}/http/http-request-body.d.ts +0 -0
- /package/{types/document → document}/http/http-status-range.d.ts +0 -0
- /package/{types/document → document}/index.d.ts +0 -0
- /package/{esm/document → document}/index.js +0 -0
- /package/{types/document → document}/mq/mq-api.d.ts +0 -0
- /package/{types/document → document}/mq/mq-controller.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-controller.js +0 -0
- /package/{types/document → document}/mq/mq-header.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-header.js +0 -0
- /package/{types/document → document}/mq/mq-operation-response.d.ts +0 -0
- /package/{types/document → document}/mq/mq-operation.d.ts +0 -0
- /package/{esm/document → document}/mq/mq-operation.js +0 -0
- /package/{types/document → document}/utils/inspect.util.d.ts +0 -0
- /package/{esm/document → document}/utils/inspect.util.js +0 -0
- /package/{types/document → document}/utils/parse-regexp.util.d.ts +0 -0
- /package/{esm/document → document}/utils/parse-regexp.util.js +0 -0
- /package/{types/document → document}/utils/string-compare.util.d.ts +0 -0
- /package/{esm/document → document}/utils/string-compare.util.js +0 -0
- /package/{types/document → document}/utils/test-scope-match.d.ts +0 -0
- /package/{esm/document → document}/utils/test-scope-match.js +0 -0
- /package/{types/document → document}/ws/ws-api.d.ts +0 -0
- /package/{types/document → document}/ws/ws-controller.d.ts +0 -0
- /package/{esm/document → document}/ws/ws-controller.js +0 -0
- /package/{types/enums → enums}/http-headers-codes.enum.d.ts +0 -0
- /package/{esm/enums → enums}/http-headers-codes.enum.js +0 -0
- /package/{types/enums → enums}/http-status-codes.enum.d.ts +0 -0
- /package/{esm/enums → enums}/http-status-codes.enum.js +0 -0
- /package/{types/enums → enums}/http-status-messages.d.ts +0 -0
- /package/{esm/enums → enums}/http-status-messages.js +0 -0
- /package/{types/enums → enums}/index.d.ts +0 -0
- /package/{esm/enums → enums}/index.js +0 -0
- /package/{types/enums → enums}/mime-types.enum.d.ts +0 -0
- /package/{esm/enums → enums}/mime-types.enum.js +0 -0
- /package/{types/exception → exception}/error-issue.d.ts +0 -0
- /package/{esm/exception → exception}/error-issue.js +0 -0
- /package/{types/exception → exception}/http-errors/bad-request.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/conflict.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/failed-dependency.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/forbidden.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/internal-server.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/method-not-allowed.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/not-acceptable.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/not-found.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/permission.error.d.ts +0 -0
- /package/{esm/exception → exception}/http-errors/permission.error.js +0 -0
- /package/{types/exception → exception}/http-errors/resource-conflict.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/resource-not.available.error.d.ts +0 -0
- /package/{esm/exception → exception}/http-errors/resource-not.available.error.js +0 -0
- /package/{types/exception → exception}/http-errors/unauthorized.error.d.ts +0 -0
- /package/{types/exception → exception}/http-errors/unprocessable-entity.error.d.ts +0 -0
- /package/{types/exception → exception}/index.d.ts +0 -0
- /package/{esm/exception → exception}/index.js +0 -0
- /package/{types/exception → exception}/issue-severity.enum.d.ts +0 -0
- /package/{esm/exception → exception}/issue-severity.enum.js +0 -0
- /package/{types/exception → exception}/opra-exception.d.ts +0 -0
- /package/{types/exception → exception}/opra-http-error.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterLexer.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterListener.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterParser.d.ts +0 -0
- /package/{types/filter → filter}/antlr/OpraFilterVisitor.d.ts +0 -0
- /package/{types/filter → filter}/ast/abstract/ast.d.ts +0 -0
- /package/{types/filter → filter}/ast/abstract/expression.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/expression.js +0 -0
- /package/{types/filter → filter}/ast/abstract/literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/literal.js +0 -0
- /package/{types/filter → filter}/ast/abstract/term.d.ts +0 -0
- /package/{esm/filter → filter}/ast/abstract/term.js +0 -0
- /package/{types/filter → filter}/ast/expressions/arithmetic-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/array-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/comparison-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/logical-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/negative-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/expressions/parenthesized-expression.d.ts +0 -0
- /package/{types/filter → filter}/ast/index.d.ts +0 -0
- /package/{esm/filter → filter}/ast/index.js +0 -0
- /package/{types/filter → filter}/ast/terms/boolean-literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/boolean-literal.js +0 -0
- /package/{types/filter → filter}/ast/terms/date-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/date-time-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/external-constant.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/external-constant.js +0 -0
- /package/{types/filter → filter}/ast/terms/null-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/number-literal.d.ts +0 -0
- /package/{types/filter → filter}/ast/terms/qualified-identifier.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/qualified-identifier.js +0 -0
- /package/{types/filter → filter}/ast/terms/string-literal.d.ts +0 -0
- /package/{esm/filter → filter}/ast/terms/string-literal.js +0 -0
- /package/{types/filter → filter}/ast/terms/time-literal.d.ts +0 -0
- /package/{types/filter → filter}/build.d.ts +0 -0
- /package/{esm/filter → filter}/build.js +0 -0
- /package/{types/filter → filter}/errors.d.ts +0 -0
- /package/{esm/filter → filter}/errors.js +0 -0
- /package/{types/filter → filter}/filter-rules.d.ts +0 -0
- /package/{types/filter → filter}/filter-tree-visitor.d.ts +0 -0
- /package/{types/filter → filter}/index.d.ts +0 -0
- /package/{esm/filter → filter}/index.js +0 -0
- /package/{types/filter → filter}/opra-error-listener.d.ts +0 -0
- /package/{types/filter → filter}/opra-filter.ns.d.ts +0 -0
- /package/{esm/filter → filter}/opra-filter.ns.js +0 -0
- /package/{types/filter → filter}/parse.d.ts +0 -0
- /package/{esm/filter → filter}/parse.js +0 -0
- /package/{types/filter → filter}/utils.d.ts +0 -0
- /package/{esm/filter → filter}/utils.js +0 -0
- /package/{types/helpers → helpers}/function-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/function-utils.js +0 -0
- /package/{types/helpers → helpers}/get-stack-filename.d.ts +0 -0
- /package/{esm/helpers → helpers}/get-stack-filename.js +0 -0
- /package/{types/helpers → helpers}/index.d.ts +0 -0
- /package/{esm/helpers → helpers}/index.js +0 -0
- /package/{types/helpers → helpers}/mixin-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/mixin-utils.js +0 -0
- /package/{types/helpers → helpers}/monkey-patches.d.ts +0 -0
- /package/{cjs/helpers → helpers}/monkey-patches.js +0 -0
- /package/{types/helpers → helpers}/object-utils.d.ts +0 -0
- /package/{esm/helpers → helpers}/object-utils.js +0 -0
- /package/{types/helpers → helpers}/parse-fields-projection.d.ts +0 -0
- /package/{types/helpers → helpers}/responsive-map.d.ts +0 -0
- /package/{esm/helpers → helpers}/responsive-map.js +0 -0
- /package/{types/helpers → helpers}/safe-json-stringify.d.ts +0 -0
- /package/{esm/helpers → helpers}/safe-json-stringify.js +0 -0
- /package/{types/helpers → helpers}/type-guards.d.ts +0 -0
- /package/{esm/helpers → helpers}/type-guards.js +0 -0
- /package/{types/i18n → i18n}/i18n.d.ts +0 -0
- /package/{esm/i18n → i18n}/i18n.js +0 -0
- /package/{types/i18n → i18n}/index.d.ts +0 -0
- /package/{esm/i18n → i18n}/index.js +0 -0
- /package/{types/i18n → i18n}/string-utils.d.ts +0 -0
- /package/{esm/i18n → i18n}/string-utils.js +0 -0
- /package/{types/i18n → i18n}/translate.d.ts +0 -0
- /package/{esm/i18n → i18n}/translate.js +0 -0
- /package/{types/index.d.ts → index.d.ts} +0 -0
- /package/{esm/index.js → index.js} +0 -0
- /package/{types/polifils → polifils}/array-find-last.d.ts +0 -0
- /package/{esm/polifils → polifils}/array-find-last.js +0 -0
- /package/{types/schema → schema}/api-document.interface.d.ts +0 -0
- /package/{esm/schema → schema}/api-document.interface.js +0 -0
- /package/{types/schema → schema}/api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/api.interface.js +0 -0
- /package/{types/schema → schema}/constants.d.ts +0 -0
- /package/{esm/schema → schema}/constants.js +0 -0
- /package/{types/schema → schema}/data-type/array-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/array-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/complex-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/complex-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/data-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/data-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/enum-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/enum-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/field.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/field.interface.js +0 -0
- /package/{types/schema → schema}/data-type/mapped-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/mapped-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/mixin-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/mixin-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/simple-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/simple-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type/union-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type/union-type.interface.js +0 -0
- /package/{types/schema → schema}/data-type-container.interface.d.ts +0 -0
- /package/{esm/schema → schema}/data-type-container.interface.js +0 -0
- /package/{types/schema → schema}/http/http-api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-api.interface.js +0 -0
- /package/{types/schema → schema}/http/http-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-controller.interface.js +0 -0
- /package/{types/schema → schema}/http/http-media-type.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-media-type.interface.js +0 -0
- /package/{types/schema → schema}/http/http-multipart-field.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-multipart-field.interface.js +0 -0
- /package/{types/schema → schema}/http/http-operation-response.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-operation-response.interface.js +0 -0
- /package/{types/schema → schema}/http/http-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-operation.interface.js +0 -0
- /package/{types/schema → schema}/http/http-parameter.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-parameter.interface.js +0 -0
- /package/{types/schema → schema}/http/http-request-body.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-request-body.interface.js +0 -0
- /package/{types/schema → schema}/http/http-status-range.interface.d.ts +0 -0
- /package/{esm/schema → schema}/http/http-status-range.interface.js +0 -0
- /package/{types/schema → schema}/index.d.ts +0 -0
- /package/{esm/schema → schema}/index.js +0 -0
- /package/{types/schema → schema}/mq/mq-api.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-api.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-controller.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-header.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-header.interface.js +0 -0
- /package/{types/schema → schema}/mq/mq-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/mq/mq-operation.interface.js +0 -0
- /package/{types/schema → schema}/opra-schema.d.ts +0 -0
- /package/{esm/schema → schema}/opra-schema.js +0 -0
- /package/{types/schema → schema}/type-guards.d.ts +0 -0
- /package/{esm/schema → schema}/type-guards.js +0 -0
- /package/{types/schema → schema}/types.d.ts +0 -0
- /package/{esm/schema → schema}/types.js +0 -0
- /package/{types/schema → schema}/value.interface.d.ts +0 -0
- /package/{esm/schema → schema}/value.interface.js +0 -0
- /package/{esm/schema → schema}/ws/ws-api.interface.js +0 -0
- /package/{types/schema → schema}/ws/ws-controller.interface.d.ts +0 -0
- /package/{esm/schema → schema}/ws/ws-controller.interface.js +0 -0
- /package/{types/schema → schema}/ws/ws-operation.interface.d.ts +0 -0
- /package/{esm/schema → schema}/ws/ws-operation.interface.js +0 -0
- /package/{types/types.d.ts → types.d.ts} +0 -0
- /package/{esm/types.js → types.js} +0 -0
|
@@ -1,7 +1,171 @@
|
|
|
1
1
|
// Generated from ./src/filter/antlr/OpraFilter.g4 by ANTLR 4.13.2
|
|
2
2
|
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
3
3
|
import { ATN, ATNDeserializer, DFA, FailedPredicateException, NoViableAltException, Parser, ParserATNSimulator, ParserRuleContext, PredictionContextCache, RecognitionException, Token, } from '@browsery/antlr4';
|
|
4
|
-
class OpraFilterParser extends Parser {
|
|
4
|
+
export default class OpraFilterParser extends Parser {
|
|
5
|
+
static T__0 = 1;
|
|
6
|
+
static T__1 = 2;
|
|
7
|
+
static T__2 = 3;
|
|
8
|
+
static T__3 = 4;
|
|
9
|
+
static T__4 = 5;
|
|
10
|
+
static T__5 = 6;
|
|
11
|
+
static T__6 = 7;
|
|
12
|
+
static T__7 = 8;
|
|
13
|
+
static T__8 = 9;
|
|
14
|
+
static T__9 = 10;
|
|
15
|
+
static T__10 = 11;
|
|
16
|
+
static T__11 = 12;
|
|
17
|
+
static T__12 = 13;
|
|
18
|
+
static T__13 = 14;
|
|
19
|
+
static T__14 = 15;
|
|
20
|
+
static T__15 = 16;
|
|
21
|
+
static T__16 = 17;
|
|
22
|
+
static T__17 = 18;
|
|
23
|
+
static T__18 = 19;
|
|
24
|
+
static T__19 = 20;
|
|
25
|
+
static T__20 = 21;
|
|
26
|
+
static T__21 = 22;
|
|
27
|
+
static T__22 = 23;
|
|
28
|
+
static T__23 = 24;
|
|
29
|
+
static T__24 = 25;
|
|
30
|
+
static T__25 = 26;
|
|
31
|
+
static T__26 = 27;
|
|
32
|
+
static T__27 = 28;
|
|
33
|
+
static T__28 = 29;
|
|
34
|
+
static T__29 = 30;
|
|
35
|
+
static T__30 = 31;
|
|
36
|
+
static T__31 = 32;
|
|
37
|
+
static T__32 = 33;
|
|
38
|
+
static T__33 = 34;
|
|
39
|
+
static IDENTIFIER = 35;
|
|
40
|
+
static POLAR_OP = 36;
|
|
41
|
+
static DATE = 37;
|
|
42
|
+
static DATETIME = 38;
|
|
43
|
+
static TIME = 39;
|
|
44
|
+
static NUMBER = 40;
|
|
45
|
+
static INTEGER = 41;
|
|
46
|
+
static STRING = 42;
|
|
47
|
+
static WHITESPACE = 43;
|
|
48
|
+
static EOF = Token.EOF;
|
|
49
|
+
static RULE_root = 0;
|
|
50
|
+
static RULE_expression = 1;
|
|
51
|
+
static RULE_comparisonLeft = 2;
|
|
52
|
+
static RULE_comparisonRight = 3;
|
|
53
|
+
static RULE_parenthesizedItem = 4;
|
|
54
|
+
static RULE_value = 5;
|
|
55
|
+
static RULE_qualifiedIdentifier = 6;
|
|
56
|
+
static RULE_externalConstant = 7;
|
|
57
|
+
static RULE_identifier = 8;
|
|
58
|
+
static RULE_arrayValue = 9;
|
|
59
|
+
static RULE_boolean = 10;
|
|
60
|
+
static RULE_null = 11;
|
|
61
|
+
static RULE_infinity = 12;
|
|
62
|
+
static RULE_arithmeticOperator = 13;
|
|
63
|
+
static RULE_comparisonOperator = 14;
|
|
64
|
+
static RULE_logicalOperator = 15;
|
|
65
|
+
static RULE_polarityOperator = 16;
|
|
66
|
+
static literalNames = [
|
|
67
|
+
null,
|
|
68
|
+
"'('",
|
|
69
|
+
"')'",
|
|
70
|
+
"'not'",
|
|
71
|
+
"'!'",
|
|
72
|
+
"'.'",
|
|
73
|
+
"'@'",
|
|
74
|
+
"'['",
|
|
75
|
+
"','",
|
|
76
|
+
"']'",
|
|
77
|
+
"'true'",
|
|
78
|
+
"'false'",
|
|
79
|
+
"'null'",
|
|
80
|
+
"'Infinity'",
|
|
81
|
+
"'infinity'",
|
|
82
|
+
"'+'",
|
|
83
|
+
"'-'",
|
|
84
|
+
"'*'",
|
|
85
|
+
"'/'",
|
|
86
|
+
"'<='",
|
|
87
|
+
"'<'",
|
|
88
|
+
"'>'",
|
|
89
|
+
"'>='",
|
|
90
|
+
"'='",
|
|
91
|
+
"'!='",
|
|
92
|
+
"'in'",
|
|
93
|
+
"'!in'",
|
|
94
|
+
"'like'",
|
|
95
|
+
"'!like'",
|
|
96
|
+
"'ilike'",
|
|
97
|
+
"'!ilike'",
|
|
98
|
+
"'and'",
|
|
99
|
+
"'or'",
|
|
100
|
+
"'&&'",
|
|
101
|
+
"'||'",
|
|
102
|
+
];
|
|
103
|
+
static symbolicNames = [
|
|
104
|
+
null,
|
|
105
|
+
null,
|
|
106
|
+
null,
|
|
107
|
+
null,
|
|
108
|
+
null,
|
|
109
|
+
null,
|
|
110
|
+
null,
|
|
111
|
+
null,
|
|
112
|
+
null,
|
|
113
|
+
null,
|
|
114
|
+
null,
|
|
115
|
+
null,
|
|
116
|
+
null,
|
|
117
|
+
null,
|
|
118
|
+
null,
|
|
119
|
+
null,
|
|
120
|
+
null,
|
|
121
|
+
null,
|
|
122
|
+
null,
|
|
123
|
+
null,
|
|
124
|
+
null,
|
|
125
|
+
null,
|
|
126
|
+
null,
|
|
127
|
+
null,
|
|
128
|
+
null,
|
|
129
|
+
null,
|
|
130
|
+
null,
|
|
131
|
+
null,
|
|
132
|
+
null,
|
|
133
|
+
null,
|
|
134
|
+
null,
|
|
135
|
+
null,
|
|
136
|
+
null,
|
|
137
|
+
null,
|
|
138
|
+
null,
|
|
139
|
+
'IDENTIFIER',
|
|
140
|
+
'POLAR_OP',
|
|
141
|
+
'DATE',
|
|
142
|
+
'DATETIME',
|
|
143
|
+
'TIME',
|
|
144
|
+
'NUMBER',
|
|
145
|
+
'INTEGER',
|
|
146
|
+
'STRING',
|
|
147
|
+
'WHITESPACE',
|
|
148
|
+
];
|
|
149
|
+
// tslint:disable:no-trailing-whitespace
|
|
150
|
+
static ruleNames = [
|
|
151
|
+
'root',
|
|
152
|
+
'expression',
|
|
153
|
+
'comparisonLeft',
|
|
154
|
+
'comparisonRight',
|
|
155
|
+
'parenthesizedItem',
|
|
156
|
+
'value',
|
|
157
|
+
'qualifiedIdentifier',
|
|
158
|
+
'externalConstant',
|
|
159
|
+
'identifier',
|
|
160
|
+
'arrayValue',
|
|
161
|
+
'boolean',
|
|
162
|
+
'null',
|
|
163
|
+
'infinity',
|
|
164
|
+
'arithmeticOperator',
|
|
165
|
+
'comparisonOperator',
|
|
166
|
+
'logicalOperator',
|
|
167
|
+
'polarityOperator',
|
|
168
|
+
];
|
|
5
169
|
get grammarFileName() {
|
|
6
170
|
return 'OpraFilter.g4';
|
|
7
171
|
}
|
|
@@ -760,226 +924,62 @@ class OpraFilterParser extends Parser {
|
|
|
760
924
|
}
|
|
761
925
|
return true;
|
|
762
926
|
}
|
|
927
|
+
static _serializedATN = [
|
|
928
|
+
4, 1, 43, 120, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
|
|
929
|
+
2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2,
|
|
930
|
+
11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7,
|
|
931
|
+
16, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
932
|
+
1, 1, 1, 1, 3, 1, 49, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 55, 8, 1, 10, 1,
|
|
933
|
+
12, 1, 58, 9, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 66, 8, 3, 1, 4,
|
|
934
|
+
1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 78, 8, 5, 1, 6,
|
|
935
|
+
1, 6, 1, 6, 5, 6, 83, 8, 6, 10, 6, 12, 6, 86, 9, 6, 1, 6, 1, 6, 1, 7, 1, 7,
|
|
936
|
+
1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 99, 8, 9, 10, 9, 12, 9, 102,
|
|
937
|
+
9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1,
|
|
938
|
+
14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 0, 1, 2, 17, 0, 2, 4, 6, 8,
|
|
939
|
+
10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 0, 6, 1, 0, 3, 4, 1, 0, 10,
|
|
940
|
+
11, 1, 0, 13, 14, 1, 0, 15, 18, 1, 0, 19, 30, 1, 0, 31, 34, 117, 0, 34, 1,
|
|
941
|
+
0, 0, 0, 2, 48, 1, 0, 0, 0, 4, 59, 1, 0, 0, 0, 6, 65, 1, 0, 0, 0, 8, 67, 1,
|
|
942
|
+
0, 0, 0, 10, 77, 1, 0, 0, 0, 12, 84, 1, 0, 0, 0, 14, 89, 1, 0, 0, 0, 16, 92,
|
|
943
|
+
1, 0, 0, 0, 18, 94, 1, 0, 0, 0, 20, 105, 1, 0, 0, 0, 22, 107, 1, 0, 0, 0,
|
|
944
|
+
24, 109, 1, 0, 0, 0, 26, 111, 1, 0, 0, 0, 28, 113, 1, 0, 0, 0, 30, 115, 1,
|
|
945
|
+
0, 0, 0, 32, 117, 1, 0, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 0, 0, 1, 36, 1,
|
|
946
|
+
1, 0, 0, 0, 37, 38, 6, 1, -1, 0, 38, 39, 3, 4, 2, 0, 39, 40, 3, 28, 14, 0,
|
|
947
|
+
40, 41, 3, 6, 3, 0, 41, 49, 1, 0, 0, 0, 42, 43, 5, 1, 0, 0, 43, 44, 3, 8, 4,
|
|
948
|
+
0, 44, 45, 5, 2, 0, 0, 45, 49, 1, 0, 0, 0, 46, 47, 7, 0, 0, 0, 47, 49, 3, 2,
|
|
949
|
+
1, 1, 48, 37, 1, 0, 0, 0, 48, 42, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 56, 1,
|
|
950
|
+
0, 0, 0, 50, 51, 10, 3, 0, 0, 51, 52, 3, 30, 15, 0, 52, 53, 3, 2, 1, 4, 53,
|
|
951
|
+
55, 1, 0, 0, 0, 54, 50, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0,
|
|
952
|
+
56, 57, 1, 0, 0, 0, 57, 3, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 60, 3, 12, 6,
|
|
953
|
+
0, 60, 5, 1, 0, 0, 0, 61, 66, 3, 10, 5, 0, 62, 66, 3, 12, 6, 0, 63, 66, 3,
|
|
954
|
+
14, 7, 0, 64, 66, 3, 18, 9, 0, 65, 61, 1, 0, 0, 0, 65, 62, 1, 0, 0, 0, 65,
|
|
955
|
+
63, 1, 0, 0, 0, 65, 64, 1, 0, 0, 0, 66, 7, 1, 0, 0, 0, 67, 68, 3, 2, 1, 0,
|
|
956
|
+
68, 9, 1, 0, 0, 0, 69, 78, 5, 40, 0, 0, 70, 78, 3, 24, 12, 0, 71, 78, 3, 20,
|
|
957
|
+
10, 0, 72, 78, 3, 22, 11, 0, 73, 78, 5, 38, 0, 0, 74, 78, 5, 37, 0, 0, 75,
|
|
958
|
+
78, 5, 39, 0, 0, 76, 78, 5, 42, 0, 0, 77, 69, 1, 0, 0, 0, 77, 70, 1, 0, 0,
|
|
959
|
+
0, 77, 71, 1, 0, 0, 0, 77, 72, 1, 0, 0, 0, 77, 73, 1, 0, 0, 0, 77, 74, 1, 0,
|
|
960
|
+
0, 0, 77, 75, 1, 0, 0, 0, 77, 76, 1, 0, 0, 0, 78, 11, 1, 0, 0, 0, 79, 80, 3,
|
|
961
|
+
16, 8, 0, 80, 81, 5, 5, 0, 0, 81, 83, 1, 0, 0, 0, 82, 79, 1, 0, 0, 0, 83,
|
|
962
|
+
86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 85, 1, 0, 0, 0, 85, 87, 1, 0, 0, 0,
|
|
963
|
+
86, 84, 1, 0, 0, 0, 87, 88, 3, 16, 8, 0, 88, 13, 1, 0, 0, 0, 89, 90, 5, 6,
|
|
964
|
+
0, 0, 90, 91, 3, 16, 8, 0, 91, 15, 1, 0, 0, 0, 92, 93, 5, 35, 0, 0, 93, 17,
|
|
965
|
+
1, 0, 0, 0, 94, 95, 5, 7, 0, 0, 95, 100, 3, 10, 5, 0, 96, 97, 5, 8, 0, 0,
|
|
966
|
+
97, 99, 3, 10, 5, 0, 98, 96, 1, 0, 0, 0, 99, 102, 1, 0, 0, 0, 100, 98, 1, 0,
|
|
967
|
+
0, 0, 100, 101, 1, 0, 0, 0, 101, 103, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 103,
|
|
968
|
+
104, 5, 9, 0, 0, 104, 19, 1, 0, 0, 0, 105, 106, 7, 1, 0, 0, 106, 21, 1, 0,
|
|
969
|
+
0, 0, 107, 108, 5, 12, 0, 0, 108, 23, 1, 0, 0, 0, 109, 110, 7, 2, 0, 0, 110,
|
|
970
|
+
25, 1, 0, 0, 0, 111, 112, 7, 3, 0, 0, 112, 27, 1, 0, 0, 0, 113, 114, 7, 4,
|
|
971
|
+
0, 0, 114, 29, 1, 0, 0, 0, 115, 116, 7, 5, 0, 0, 116, 31, 1, 0, 0, 0, 117,
|
|
972
|
+
118, 5, 36, 0, 0, 118, 33, 1, 0, 0, 0, 6, 48, 56, 65, 77, 84, 100,
|
|
973
|
+
];
|
|
974
|
+
static __ATN;
|
|
763
975
|
static get _ATN() {
|
|
764
976
|
if (!OpraFilterParser.__ATN) {
|
|
765
977
|
OpraFilterParser.__ATN = new ATNDeserializer().deserialize(OpraFilterParser._serializedATN);
|
|
766
978
|
}
|
|
767
979
|
return OpraFilterParser.__ATN;
|
|
768
980
|
}
|
|
981
|
+
static DecisionsToDFA = OpraFilterParser._ATN.decisionToState.map((ds, index) => new DFA(ds, index));
|
|
769
982
|
}
|
|
770
|
-
OpraFilterParser.T__0 = 1;
|
|
771
|
-
OpraFilterParser.T__1 = 2;
|
|
772
|
-
OpraFilterParser.T__2 = 3;
|
|
773
|
-
OpraFilterParser.T__3 = 4;
|
|
774
|
-
OpraFilterParser.T__4 = 5;
|
|
775
|
-
OpraFilterParser.T__5 = 6;
|
|
776
|
-
OpraFilterParser.T__6 = 7;
|
|
777
|
-
OpraFilterParser.T__7 = 8;
|
|
778
|
-
OpraFilterParser.T__8 = 9;
|
|
779
|
-
OpraFilterParser.T__9 = 10;
|
|
780
|
-
OpraFilterParser.T__10 = 11;
|
|
781
|
-
OpraFilterParser.T__11 = 12;
|
|
782
|
-
OpraFilterParser.T__12 = 13;
|
|
783
|
-
OpraFilterParser.T__13 = 14;
|
|
784
|
-
OpraFilterParser.T__14 = 15;
|
|
785
|
-
OpraFilterParser.T__15 = 16;
|
|
786
|
-
OpraFilterParser.T__16 = 17;
|
|
787
|
-
OpraFilterParser.T__17 = 18;
|
|
788
|
-
OpraFilterParser.T__18 = 19;
|
|
789
|
-
OpraFilterParser.T__19 = 20;
|
|
790
|
-
OpraFilterParser.T__20 = 21;
|
|
791
|
-
OpraFilterParser.T__21 = 22;
|
|
792
|
-
OpraFilterParser.T__22 = 23;
|
|
793
|
-
OpraFilterParser.T__23 = 24;
|
|
794
|
-
OpraFilterParser.T__24 = 25;
|
|
795
|
-
OpraFilterParser.T__25 = 26;
|
|
796
|
-
OpraFilterParser.T__26 = 27;
|
|
797
|
-
OpraFilterParser.T__27 = 28;
|
|
798
|
-
OpraFilterParser.T__28 = 29;
|
|
799
|
-
OpraFilterParser.T__29 = 30;
|
|
800
|
-
OpraFilterParser.T__30 = 31;
|
|
801
|
-
OpraFilterParser.T__31 = 32;
|
|
802
|
-
OpraFilterParser.T__32 = 33;
|
|
803
|
-
OpraFilterParser.T__33 = 34;
|
|
804
|
-
OpraFilterParser.IDENTIFIER = 35;
|
|
805
|
-
OpraFilterParser.POLAR_OP = 36;
|
|
806
|
-
OpraFilterParser.DATE = 37;
|
|
807
|
-
OpraFilterParser.DATETIME = 38;
|
|
808
|
-
OpraFilterParser.TIME = 39;
|
|
809
|
-
OpraFilterParser.NUMBER = 40;
|
|
810
|
-
OpraFilterParser.INTEGER = 41;
|
|
811
|
-
OpraFilterParser.STRING = 42;
|
|
812
|
-
OpraFilterParser.WHITESPACE = 43;
|
|
813
|
-
OpraFilterParser.EOF = Token.EOF;
|
|
814
|
-
OpraFilterParser.RULE_root = 0;
|
|
815
|
-
OpraFilterParser.RULE_expression = 1;
|
|
816
|
-
OpraFilterParser.RULE_comparisonLeft = 2;
|
|
817
|
-
OpraFilterParser.RULE_comparisonRight = 3;
|
|
818
|
-
OpraFilterParser.RULE_parenthesizedItem = 4;
|
|
819
|
-
OpraFilterParser.RULE_value = 5;
|
|
820
|
-
OpraFilterParser.RULE_qualifiedIdentifier = 6;
|
|
821
|
-
OpraFilterParser.RULE_externalConstant = 7;
|
|
822
|
-
OpraFilterParser.RULE_identifier = 8;
|
|
823
|
-
OpraFilterParser.RULE_arrayValue = 9;
|
|
824
|
-
OpraFilterParser.RULE_boolean = 10;
|
|
825
|
-
OpraFilterParser.RULE_null = 11;
|
|
826
|
-
OpraFilterParser.RULE_infinity = 12;
|
|
827
|
-
OpraFilterParser.RULE_arithmeticOperator = 13;
|
|
828
|
-
OpraFilterParser.RULE_comparisonOperator = 14;
|
|
829
|
-
OpraFilterParser.RULE_logicalOperator = 15;
|
|
830
|
-
OpraFilterParser.RULE_polarityOperator = 16;
|
|
831
|
-
OpraFilterParser.literalNames = [
|
|
832
|
-
null,
|
|
833
|
-
"'('",
|
|
834
|
-
"')'",
|
|
835
|
-
"'not'",
|
|
836
|
-
"'!'",
|
|
837
|
-
"'.'",
|
|
838
|
-
"'@'",
|
|
839
|
-
"'['",
|
|
840
|
-
"','",
|
|
841
|
-
"']'",
|
|
842
|
-
"'true'",
|
|
843
|
-
"'false'",
|
|
844
|
-
"'null'",
|
|
845
|
-
"'Infinity'",
|
|
846
|
-
"'infinity'",
|
|
847
|
-
"'+'",
|
|
848
|
-
"'-'",
|
|
849
|
-
"'*'",
|
|
850
|
-
"'/'",
|
|
851
|
-
"'<='",
|
|
852
|
-
"'<'",
|
|
853
|
-
"'>'",
|
|
854
|
-
"'>='",
|
|
855
|
-
"'='",
|
|
856
|
-
"'!='",
|
|
857
|
-
"'in'",
|
|
858
|
-
"'!in'",
|
|
859
|
-
"'like'",
|
|
860
|
-
"'!like'",
|
|
861
|
-
"'ilike'",
|
|
862
|
-
"'!ilike'",
|
|
863
|
-
"'and'",
|
|
864
|
-
"'or'",
|
|
865
|
-
"'&&'",
|
|
866
|
-
"'||'",
|
|
867
|
-
];
|
|
868
|
-
OpraFilterParser.symbolicNames = [
|
|
869
|
-
null,
|
|
870
|
-
null,
|
|
871
|
-
null,
|
|
872
|
-
null,
|
|
873
|
-
null,
|
|
874
|
-
null,
|
|
875
|
-
null,
|
|
876
|
-
null,
|
|
877
|
-
null,
|
|
878
|
-
null,
|
|
879
|
-
null,
|
|
880
|
-
null,
|
|
881
|
-
null,
|
|
882
|
-
null,
|
|
883
|
-
null,
|
|
884
|
-
null,
|
|
885
|
-
null,
|
|
886
|
-
null,
|
|
887
|
-
null,
|
|
888
|
-
null,
|
|
889
|
-
null,
|
|
890
|
-
null,
|
|
891
|
-
null,
|
|
892
|
-
null,
|
|
893
|
-
null,
|
|
894
|
-
null,
|
|
895
|
-
null,
|
|
896
|
-
null,
|
|
897
|
-
null,
|
|
898
|
-
null,
|
|
899
|
-
null,
|
|
900
|
-
null,
|
|
901
|
-
null,
|
|
902
|
-
null,
|
|
903
|
-
null,
|
|
904
|
-
'IDENTIFIER',
|
|
905
|
-
'POLAR_OP',
|
|
906
|
-
'DATE',
|
|
907
|
-
'DATETIME',
|
|
908
|
-
'TIME',
|
|
909
|
-
'NUMBER',
|
|
910
|
-
'INTEGER',
|
|
911
|
-
'STRING',
|
|
912
|
-
'WHITESPACE',
|
|
913
|
-
];
|
|
914
|
-
// tslint:disable:no-trailing-whitespace
|
|
915
|
-
OpraFilterParser.ruleNames = [
|
|
916
|
-
'root',
|
|
917
|
-
'expression',
|
|
918
|
-
'comparisonLeft',
|
|
919
|
-
'comparisonRight',
|
|
920
|
-
'parenthesizedItem',
|
|
921
|
-
'value',
|
|
922
|
-
'qualifiedIdentifier',
|
|
923
|
-
'externalConstant',
|
|
924
|
-
'identifier',
|
|
925
|
-
'arrayValue',
|
|
926
|
-
'boolean',
|
|
927
|
-
'null',
|
|
928
|
-
'infinity',
|
|
929
|
-
'arithmeticOperator',
|
|
930
|
-
'comparisonOperator',
|
|
931
|
-
'logicalOperator',
|
|
932
|
-
'polarityOperator',
|
|
933
|
-
];
|
|
934
|
-
OpraFilterParser._serializedATN = [
|
|
935
|
-
4, 1, 43, 120, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
|
|
936
|
-
2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2,
|
|
937
|
-
11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7,
|
|
938
|
-
16, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
939
|
-
1, 1, 1, 1, 3, 1, 49, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 55, 8, 1, 10, 1,
|
|
940
|
-
12, 1, 58, 9, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 66, 8, 3, 1, 4,
|
|
941
|
-
1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 78, 8, 5, 1, 6,
|
|
942
|
-
1, 6, 1, 6, 5, 6, 83, 8, 6, 10, 6, 12, 6, 86, 9, 6, 1, 6, 1, 6, 1, 7, 1, 7,
|
|
943
|
-
1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 99, 8, 9, 10, 9, 12, 9, 102,
|
|
944
|
-
9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1,
|
|
945
|
-
14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 0, 1, 2, 17, 0, 2, 4, 6, 8,
|
|
946
|
-
10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 0, 6, 1, 0, 3, 4, 1, 0, 10,
|
|
947
|
-
11, 1, 0, 13, 14, 1, 0, 15, 18, 1, 0, 19, 30, 1, 0, 31, 34, 117, 0, 34, 1,
|
|
948
|
-
0, 0, 0, 2, 48, 1, 0, 0, 0, 4, 59, 1, 0, 0, 0, 6, 65, 1, 0, 0, 0, 8, 67, 1,
|
|
949
|
-
0, 0, 0, 10, 77, 1, 0, 0, 0, 12, 84, 1, 0, 0, 0, 14, 89, 1, 0, 0, 0, 16, 92,
|
|
950
|
-
1, 0, 0, 0, 18, 94, 1, 0, 0, 0, 20, 105, 1, 0, 0, 0, 22, 107, 1, 0, 0, 0,
|
|
951
|
-
24, 109, 1, 0, 0, 0, 26, 111, 1, 0, 0, 0, 28, 113, 1, 0, 0, 0, 30, 115, 1,
|
|
952
|
-
0, 0, 0, 32, 117, 1, 0, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 0, 0, 1, 36, 1,
|
|
953
|
-
1, 0, 0, 0, 37, 38, 6, 1, -1, 0, 38, 39, 3, 4, 2, 0, 39, 40, 3, 28, 14, 0,
|
|
954
|
-
40, 41, 3, 6, 3, 0, 41, 49, 1, 0, 0, 0, 42, 43, 5, 1, 0, 0, 43, 44, 3, 8, 4,
|
|
955
|
-
0, 44, 45, 5, 2, 0, 0, 45, 49, 1, 0, 0, 0, 46, 47, 7, 0, 0, 0, 47, 49, 3, 2,
|
|
956
|
-
1, 1, 48, 37, 1, 0, 0, 0, 48, 42, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 56, 1,
|
|
957
|
-
0, 0, 0, 50, 51, 10, 3, 0, 0, 51, 52, 3, 30, 15, 0, 52, 53, 3, 2, 1, 4, 53,
|
|
958
|
-
55, 1, 0, 0, 0, 54, 50, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0,
|
|
959
|
-
56, 57, 1, 0, 0, 0, 57, 3, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 60, 3, 12, 6,
|
|
960
|
-
0, 60, 5, 1, 0, 0, 0, 61, 66, 3, 10, 5, 0, 62, 66, 3, 12, 6, 0, 63, 66, 3,
|
|
961
|
-
14, 7, 0, 64, 66, 3, 18, 9, 0, 65, 61, 1, 0, 0, 0, 65, 62, 1, 0, 0, 0, 65,
|
|
962
|
-
63, 1, 0, 0, 0, 65, 64, 1, 0, 0, 0, 66, 7, 1, 0, 0, 0, 67, 68, 3, 2, 1, 0,
|
|
963
|
-
68, 9, 1, 0, 0, 0, 69, 78, 5, 40, 0, 0, 70, 78, 3, 24, 12, 0, 71, 78, 3, 20,
|
|
964
|
-
10, 0, 72, 78, 3, 22, 11, 0, 73, 78, 5, 38, 0, 0, 74, 78, 5, 37, 0, 0, 75,
|
|
965
|
-
78, 5, 39, 0, 0, 76, 78, 5, 42, 0, 0, 77, 69, 1, 0, 0, 0, 77, 70, 1, 0, 0,
|
|
966
|
-
0, 77, 71, 1, 0, 0, 0, 77, 72, 1, 0, 0, 0, 77, 73, 1, 0, 0, 0, 77, 74, 1, 0,
|
|
967
|
-
0, 0, 77, 75, 1, 0, 0, 0, 77, 76, 1, 0, 0, 0, 78, 11, 1, 0, 0, 0, 79, 80, 3,
|
|
968
|
-
16, 8, 0, 80, 81, 5, 5, 0, 0, 81, 83, 1, 0, 0, 0, 82, 79, 1, 0, 0, 0, 83,
|
|
969
|
-
86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 85, 1, 0, 0, 0, 85, 87, 1, 0, 0, 0,
|
|
970
|
-
86, 84, 1, 0, 0, 0, 87, 88, 3, 16, 8, 0, 88, 13, 1, 0, 0, 0, 89, 90, 5, 6,
|
|
971
|
-
0, 0, 90, 91, 3, 16, 8, 0, 91, 15, 1, 0, 0, 0, 92, 93, 5, 35, 0, 0, 93, 17,
|
|
972
|
-
1, 0, 0, 0, 94, 95, 5, 7, 0, 0, 95, 100, 3, 10, 5, 0, 96, 97, 5, 8, 0, 0,
|
|
973
|
-
97, 99, 3, 10, 5, 0, 98, 96, 1, 0, 0, 0, 99, 102, 1, 0, 0, 0, 100, 98, 1, 0,
|
|
974
|
-
0, 0, 100, 101, 1, 0, 0, 0, 101, 103, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 103,
|
|
975
|
-
104, 5, 9, 0, 0, 104, 19, 1, 0, 0, 0, 105, 106, 7, 1, 0, 0, 106, 21, 1, 0,
|
|
976
|
-
0, 0, 107, 108, 5, 12, 0, 0, 108, 23, 1, 0, 0, 0, 109, 110, 7, 2, 0, 0, 110,
|
|
977
|
-
25, 1, 0, 0, 0, 111, 112, 7, 3, 0, 0, 112, 27, 1, 0, 0, 0, 113, 114, 7, 4,
|
|
978
|
-
0, 0, 114, 29, 1, 0, 0, 0, 115, 116, 7, 5, 0, 0, 116, 31, 1, 0, 0, 0, 117,
|
|
979
|
-
118, 5, 36, 0, 0, 118, 33, 1, 0, 0, 0, 6, 48, 56, 65, 77, 84, 100,
|
|
980
|
-
];
|
|
981
|
-
OpraFilterParser.DecisionsToDFA = OpraFilterParser._ATN.decisionToState.map((ds, index) => new DFA(ds, index));
|
|
982
|
-
export default OpraFilterParser;
|
|
983
983
|
export class RootContext extends ParserRuleContext {
|
|
984
984
|
constructor(parser, parent, invokingState) {
|
|
985
985
|
super(parent, invokingState);
|
|
@@ -1083,6 +1083,9 @@ export class NegativeExpressionContext extends ExpressionContext {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
export class ComparisonExpressionContext extends ExpressionContext {
|
|
1086
|
+
_left;
|
|
1087
|
+
_operator;
|
|
1088
|
+
_right;
|
|
1086
1089
|
constructor(parser, ctx) {
|
|
1087
1090
|
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1088
1091
|
super.copyFrom(ctx);
|
|
@@ -1117,6 +1120,7 @@ export class ComparisonExpressionContext extends ExpressionContext {
|
|
|
1117
1120
|
}
|
|
1118
1121
|
}
|
|
1119
1122
|
export class LogicalExpressionContext extends ExpressionContext {
|
|
1123
|
+
_op;
|
|
1120
1124
|
constructor(parser, ctx) {
|
|
1121
1125
|
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1122
1126
|
super.copyFrom(ctx);
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// Generated from ./src/filter/antlr/OpraFilter.g4 by ANTLR 4.13.2
|
|
2
|
+
import { ParseTreeVisitor } from '@browsery/antlr4';
|
|
3
|
+
/**
|
|
4
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
5
|
+
* by `OpraFilterParser`.
|
|
6
|
+
*
|
|
7
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
8
|
+
* operations with no return type.
|
|
9
|
+
*/
|
|
10
|
+
export default class OpraFilterVisitor extends ParseTreeVisitor {
|
|
11
|
+
/**
|
|
12
|
+
* Visit a parse tree produced by `OpraFilterParser.root`.
|
|
13
|
+
* @param ctx the parse tree
|
|
14
|
+
* @return the visitor result
|
|
15
|
+
*/
|
|
16
|
+
visitRoot;
|
|
17
|
+
/**
|
|
18
|
+
* Visit a parse tree produced by the `parenthesizedExpression`
|
|
19
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
20
|
+
* @param ctx the parse tree
|
|
21
|
+
* @return the visitor result
|
|
22
|
+
*/
|
|
23
|
+
visitParenthesizedExpression;
|
|
24
|
+
/**
|
|
25
|
+
* Visit a parse tree produced by the `negativeExpression`
|
|
26
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
27
|
+
* @param ctx the parse tree
|
|
28
|
+
* @return the visitor result
|
|
29
|
+
*/
|
|
30
|
+
visitNegativeExpression;
|
|
31
|
+
/**
|
|
32
|
+
* Visit a parse tree produced by the `comparisonExpression`
|
|
33
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
34
|
+
* @param ctx the parse tree
|
|
35
|
+
* @return the visitor result
|
|
36
|
+
*/
|
|
37
|
+
visitComparisonExpression;
|
|
38
|
+
/**
|
|
39
|
+
* Visit a parse tree produced by the `logicalExpression`
|
|
40
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
41
|
+
* @param ctx the parse tree
|
|
42
|
+
* @return the visitor result
|
|
43
|
+
*/
|
|
44
|
+
visitLogicalExpression;
|
|
45
|
+
/**
|
|
46
|
+
* Visit a parse tree produced by `OpraFilterParser.comparisonLeft`.
|
|
47
|
+
* @param ctx the parse tree
|
|
48
|
+
* @return the visitor result
|
|
49
|
+
*/
|
|
50
|
+
visitComparisonLeft;
|
|
51
|
+
/**
|
|
52
|
+
* Visit a parse tree produced by `OpraFilterParser.comparisonRight`.
|
|
53
|
+
* @param ctx the parse tree
|
|
54
|
+
* @return the visitor result
|
|
55
|
+
*/
|
|
56
|
+
visitComparisonRight;
|
|
57
|
+
/**
|
|
58
|
+
* Visit a parse tree produced by `OpraFilterParser.parenthesizedItem`.
|
|
59
|
+
* @param ctx the parse tree
|
|
60
|
+
* @return the visitor result
|
|
61
|
+
*/
|
|
62
|
+
visitParenthesizedItem;
|
|
63
|
+
/**
|
|
64
|
+
* Visit a parse tree produced by the `numberLiteral`
|
|
65
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
66
|
+
* @param ctx the parse tree
|
|
67
|
+
* @return the visitor result
|
|
68
|
+
*/
|
|
69
|
+
visitNumberLiteral;
|
|
70
|
+
/**
|
|
71
|
+
* Visit a parse tree produced by the `infinityLiteral`
|
|
72
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
73
|
+
* @param ctx the parse tree
|
|
74
|
+
* @return the visitor result
|
|
75
|
+
*/
|
|
76
|
+
visitInfinityLiteral;
|
|
77
|
+
/**
|
|
78
|
+
* Visit a parse tree produced by the `booleanLiteral`
|
|
79
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
80
|
+
* @param ctx the parse tree
|
|
81
|
+
* @return the visitor result
|
|
82
|
+
*/
|
|
83
|
+
visitBooleanLiteral;
|
|
84
|
+
/**
|
|
85
|
+
* Visit a parse tree produced by the `nullLiteral`
|
|
86
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
87
|
+
* @param ctx the parse tree
|
|
88
|
+
* @return the visitor result
|
|
89
|
+
*/
|
|
90
|
+
visitNullLiteral;
|
|
91
|
+
/**
|
|
92
|
+
* Visit a parse tree produced by the `dateTimeLiteral`
|
|
93
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
94
|
+
* @param ctx the parse tree
|
|
95
|
+
* @return the visitor result
|
|
96
|
+
*/
|
|
97
|
+
visitDateTimeLiteral;
|
|
98
|
+
/**
|
|
99
|
+
* Visit a parse tree produced by the `dateLiteral`
|
|
100
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
101
|
+
* @param ctx the parse tree
|
|
102
|
+
* @return the visitor result
|
|
103
|
+
*/
|
|
104
|
+
visitDateLiteral;
|
|
105
|
+
/**
|
|
106
|
+
* Visit a parse tree produced by the `timeLiteral`
|
|
107
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
108
|
+
* @param ctx the parse tree
|
|
109
|
+
* @return the visitor result
|
|
110
|
+
*/
|
|
111
|
+
visitTimeLiteral;
|
|
112
|
+
/**
|
|
113
|
+
* Visit a parse tree produced by the `stringLiteral`
|
|
114
|
+
* labeled alternative in `OpraFilterParser.value`.
|
|
115
|
+
* @param ctx the parse tree
|
|
116
|
+
* @return the visitor result
|
|
117
|
+
*/
|
|
118
|
+
visitStringLiteral;
|
|
119
|
+
/**
|
|
120
|
+
* Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
|
|
121
|
+
* @param ctx the parse tree
|
|
122
|
+
* @return the visitor result
|
|
123
|
+
*/
|
|
124
|
+
visitQualifiedIdentifier;
|
|
125
|
+
/**
|
|
126
|
+
* Visit a parse tree produced by `OpraFilterParser.externalConstant`.
|
|
127
|
+
* @param ctx the parse tree
|
|
128
|
+
* @return the visitor result
|
|
129
|
+
*/
|
|
130
|
+
visitExternalConstant;
|
|
131
|
+
/**
|
|
132
|
+
* Visit a parse tree produced by `OpraFilterParser.identifier`.
|
|
133
|
+
* @param ctx the parse tree
|
|
134
|
+
* @return the visitor result
|
|
135
|
+
*/
|
|
136
|
+
visitIdentifier;
|
|
137
|
+
/**
|
|
138
|
+
* Visit a parse tree produced by `OpraFilterParser.arrayValue`.
|
|
139
|
+
* @param ctx the parse tree
|
|
140
|
+
* @return the visitor result
|
|
141
|
+
*/
|
|
142
|
+
visitArrayValue;
|
|
143
|
+
/**
|
|
144
|
+
* Visit a parse tree produced by `OpraFilterParser.boolean`.
|
|
145
|
+
* @param ctx the parse tree
|
|
146
|
+
* @return the visitor result
|
|
147
|
+
*/
|
|
148
|
+
visitBoolean;
|
|
149
|
+
/**
|
|
150
|
+
* Visit a parse tree produced by `OpraFilterParser.null`.
|
|
151
|
+
* @param ctx the parse tree
|
|
152
|
+
* @return the visitor result
|
|
153
|
+
*/
|
|
154
|
+
visitNull;
|
|
155
|
+
/**
|
|
156
|
+
* Visit a parse tree produced by `OpraFilterParser.infinity`.
|
|
157
|
+
* @param ctx the parse tree
|
|
158
|
+
* @return the visitor result
|
|
159
|
+
*/
|
|
160
|
+
visitInfinity;
|
|
161
|
+
/**
|
|
162
|
+
* Visit a parse tree produced by `OpraFilterParser.arithmeticOperator`.
|
|
163
|
+
* @param ctx the parse tree
|
|
164
|
+
* @return the visitor result
|
|
165
|
+
*/
|
|
166
|
+
visitArithmeticOperator;
|
|
167
|
+
/**
|
|
168
|
+
* Visit a parse tree produced by `OpraFilterParser.comparisonOperator`.
|
|
169
|
+
* @param ctx the parse tree
|
|
170
|
+
* @return the visitor result
|
|
171
|
+
*/
|
|
172
|
+
visitComparisonOperator;
|
|
173
|
+
/**
|
|
174
|
+
* Visit a parse tree produced by `OpraFilterParser.logicalOperator`.
|
|
175
|
+
* @param ctx the parse tree
|
|
176
|
+
* @return the visitor result
|
|
177
|
+
*/
|
|
178
|
+
visitLogicalOperator;
|
|
179
|
+
/**
|
|
180
|
+
* Visit a parse tree produced by `OpraFilterParser.polarityOperator`.
|
|
181
|
+
* @param ctx the parse tree
|
|
182
|
+
* @return the visitor result
|
|
183
|
+
*/
|
|
184
|
+
visitPolarityOperator;
|
|
185
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expression } from '../abstract/expression.js';
|
|
2
2
|
export class ArithmeticExpression extends Expression {
|
|
3
|
+
items = [];
|
|
3
4
|
constructor() {
|
|
4
5
|
super();
|
|
5
|
-
this.items = [];
|
|
6
6
|
}
|
|
7
7
|
append(op, expression) {
|
|
8
8
|
this.items.push(new ArithmeticExpressionItem({
|
|
@@ -18,6 +18,8 @@ export class ArithmeticExpression extends Expression {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export class ArithmeticExpressionItem {
|
|
21
|
+
op;
|
|
22
|
+
expression;
|
|
21
23
|
constructor(o) {
|
|
22
24
|
Object.assign(this, o);
|
|
23
25
|
}
|