@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,1851 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Generated from ./src/filter/antlr/OpraFilter.g4 by ANTLR 4.13.2
|
|
3
|
-
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.PolarityOperatorContext = exports.LogicalOperatorContext = exports.ComparisonOperatorContext = exports.ArithmeticOperatorContext = exports.InfinityContext = exports.NullContext = exports.BooleanContext = exports.ArrayValueContext = exports.IdentifierContext = exports.ExternalConstantContext = exports.QualifiedIdentifierContext = exports.NumberLiteralContext = exports.BooleanLiteralContext = exports.InfinityLiteralContext = exports.DateLiteralContext = exports.StringLiteralContext = exports.DateTimeLiteralContext = exports.NullLiteralContext = exports.TimeLiteralContext = exports.ValueContext = exports.ParenthesizedItemContext = exports.ComparisonRightContext = exports.ComparisonLeftContext = exports.LogicalExpressionContext = exports.ComparisonExpressionContext = exports.NegativeExpressionContext = exports.ParenthesizedExpressionContext = exports.ExpressionContext = exports.RootContext = void 0;
|
|
6
|
-
const antlr4_1 = require("@browsery/antlr4");
|
|
7
|
-
class OpraFilterParser extends antlr4_1.Parser {
|
|
8
|
-
get grammarFileName() {
|
|
9
|
-
return 'OpraFilter.g4';
|
|
10
|
-
}
|
|
11
|
-
get literalNames() {
|
|
12
|
-
return OpraFilterParser.literalNames;
|
|
13
|
-
}
|
|
14
|
-
get symbolicNames() {
|
|
15
|
-
return OpraFilterParser.symbolicNames;
|
|
16
|
-
}
|
|
17
|
-
get ruleNames() {
|
|
18
|
-
return OpraFilterParser.ruleNames;
|
|
19
|
-
}
|
|
20
|
-
get serializedATN() {
|
|
21
|
-
return OpraFilterParser._serializedATN;
|
|
22
|
-
}
|
|
23
|
-
createFailedPredicateException(predicate, message) {
|
|
24
|
-
return new antlr4_1.FailedPredicateException(this, predicate, message);
|
|
25
|
-
}
|
|
26
|
-
constructor(input) {
|
|
27
|
-
super(input);
|
|
28
|
-
this._interp = new antlr4_1.ParserATNSimulator(this, OpraFilterParser._ATN, OpraFilterParser.DecisionsToDFA, new antlr4_1.PredictionContextCache());
|
|
29
|
-
}
|
|
30
|
-
// @RuleVersion(0)
|
|
31
|
-
root() {
|
|
32
|
-
let localctx = new RootContext(this, this._ctx, this.state);
|
|
33
|
-
this.enterRule(localctx, 0, OpraFilterParser.RULE_root);
|
|
34
|
-
try {
|
|
35
|
-
this.enterOuterAlt(localctx, 1);
|
|
36
|
-
{
|
|
37
|
-
this.state = 34;
|
|
38
|
-
this.expression(0);
|
|
39
|
-
this.state = 35;
|
|
40
|
-
this.match(OpraFilterParser.EOF);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
catch (re) {
|
|
44
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
45
|
-
localctx.exception = re;
|
|
46
|
-
this._errHandler.reportError(this, re);
|
|
47
|
-
this._errHandler.recover(this, re);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
throw re;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
finally {
|
|
54
|
-
this.exitRule();
|
|
55
|
-
}
|
|
56
|
-
return localctx;
|
|
57
|
-
}
|
|
58
|
-
// @RuleVersion(0)
|
|
59
|
-
expression(_p) {
|
|
60
|
-
if (_p === undefined) {
|
|
61
|
-
_p = 0;
|
|
62
|
-
}
|
|
63
|
-
let _parentctx = this._ctx;
|
|
64
|
-
let _parentState = this.state;
|
|
65
|
-
let localctx = new ExpressionContext(this, this._ctx, _parentState);
|
|
66
|
-
let _prevctx = localctx;
|
|
67
|
-
let _startState = 2;
|
|
68
|
-
this.enterRecursionRule(localctx, 2, OpraFilterParser.RULE_expression, _p);
|
|
69
|
-
let _la;
|
|
70
|
-
try {
|
|
71
|
-
let _alt;
|
|
72
|
-
this.enterOuterAlt(localctx, 1);
|
|
73
|
-
{
|
|
74
|
-
this.state = 48;
|
|
75
|
-
this._errHandler.sync(this);
|
|
76
|
-
switch (this._input.LA(1)) {
|
|
77
|
-
case 35:
|
|
78
|
-
{
|
|
79
|
-
localctx = new ComparisonExpressionContext(this, localctx);
|
|
80
|
-
this._ctx = localctx;
|
|
81
|
-
_prevctx = localctx;
|
|
82
|
-
this.state = 38;
|
|
83
|
-
localctx._left =
|
|
84
|
-
this.comparisonLeft();
|
|
85
|
-
this.state = 39;
|
|
86
|
-
localctx._operator =
|
|
87
|
-
this.comparisonOperator();
|
|
88
|
-
this.state = 40;
|
|
89
|
-
localctx._right =
|
|
90
|
-
this.comparisonRight();
|
|
91
|
-
}
|
|
92
|
-
break;
|
|
93
|
-
case 1:
|
|
94
|
-
{
|
|
95
|
-
localctx = new ParenthesizedExpressionContext(this, localctx);
|
|
96
|
-
this._ctx = localctx;
|
|
97
|
-
_prevctx = localctx;
|
|
98
|
-
this.state = 42;
|
|
99
|
-
this.match(OpraFilterParser.T__0);
|
|
100
|
-
this.state = 43;
|
|
101
|
-
this.parenthesizedItem();
|
|
102
|
-
this.state = 44;
|
|
103
|
-
this.match(OpraFilterParser.T__1);
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
case 3:
|
|
107
|
-
case 4:
|
|
108
|
-
{
|
|
109
|
-
localctx = new NegativeExpressionContext(this, localctx);
|
|
110
|
-
this._ctx = localctx;
|
|
111
|
-
_prevctx = localctx;
|
|
112
|
-
this.state = 46;
|
|
113
|
-
_la = this._input.LA(1);
|
|
114
|
-
if (!(_la === 3 || _la === 4)) {
|
|
115
|
-
this._errHandler.recoverInline(this);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this._errHandler.reportMatch(this);
|
|
119
|
-
this.consume();
|
|
120
|
-
}
|
|
121
|
-
this.state = 47;
|
|
122
|
-
this.expression(1);
|
|
123
|
-
}
|
|
124
|
-
break;
|
|
125
|
-
default:
|
|
126
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
127
|
-
}
|
|
128
|
-
this._ctx.stop = this._input.LT(-1);
|
|
129
|
-
this.state = 56;
|
|
130
|
-
this._errHandler.sync(this);
|
|
131
|
-
_alt = this._interp.adaptivePredict(this._input, 1, this._ctx);
|
|
132
|
-
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
133
|
-
if (_alt === 1) {
|
|
134
|
-
if (this._parseListeners != null) {
|
|
135
|
-
this.triggerExitRuleEvent();
|
|
136
|
-
}
|
|
137
|
-
_prevctx = localctx;
|
|
138
|
-
{
|
|
139
|
-
{
|
|
140
|
-
localctx = new LogicalExpressionContext(this, new ExpressionContext(this, _parentctx, _parentState));
|
|
141
|
-
this.pushNewRecursionContext(localctx, _startState, OpraFilterParser.RULE_expression);
|
|
142
|
-
this.state = 50;
|
|
143
|
-
if (!this.precpred(this._ctx, 3)) {
|
|
144
|
-
throw this.createFailedPredicateException('this.precpred(this._ctx, 3)');
|
|
145
|
-
}
|
|
146
|
-
this.state = 51;
|
|
147
|
-
localctx._op =
|
|
148
|
-
this.logicalOperator();
|
|
149
|
-
this.state = 52;
|
|
150
|
-
this.expression(4);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
this.state = 58;
|
|
155
|
-
this._errHandler.sync(this);
|
|
156
|
-
_alt = this._interp.adaptivePredict(this._input, 1, this._ctx);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (re) {
|
|
161
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
162
|
-
localctx.exception = re;
|
|
163
|
-
this._errHandler.reportError(this, re);
|
|
164
|
-
this._errHandler.recover(this, re);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
throw re;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
finally {
|
|
171
|
-
this.unrollRecursionContexts(_parentctx);
|
|
172
|
-
}
|
|
173
|
-
return localctx;
|
|
174
|
-
}
|
|
175
|
-
// @RuleVersion(0)
|
|
176
|
-
comparisonLeft() {
|
|
177
|
-
let localctx = new ComparisonLeftContext(this, this._ctx, this.state);
|
|
178
|
-
this.enterRule(localctx, 4, OpraFilterParser.RULE_comparisonLeft);
|
|
179
|
-
try {
|
|
180
|
-
this.enterOuterAlt(localctx, 1);
|
|
181
|
-
{
|
|
182
|
-
this.state = 59;
|
|
183
|
-
this.qualifiedIdentifier();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
catch (re) {
|
|
187
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
188
|
-
localctx.exception = re;
|
|
189
|
-
this._errHandler.reportError(this, re);
|
|
190
|
-
this._errHandler.recover(this, re);
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
throw re;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
finally {
|
|
197
|
-
this.exitRule();
|
|
198
|
-
}
|
|
199
|
-
return localctx;
|
|
200
|
-
}
|
|
201
|
-
// @RuleVersion(0)
|
|
202
|
-
comparisonRight() {
|
|
203
|
-
let localctx = new ComparisonRightContext(this, this._ctx, this.state);
|
|
204
|
-
this.enterRule(localctx, 6, OpraFilterParser.RULE_comparisonRight);
|
|
205
|
-
try {
|
|
206
|
-
this.state = 65;
|
|
207
|
-
this._errHandler.sync(this);
|
|
208
|
-
switch (this._input.LA(1)) {
|
|
209
|
-
case 10:
|
|
210
|
-
case 11:
|
|
211
|
-
case 12:
|
|
212
|
-
case 13:
|
|
213
|
-
case 14:
|
|
214
|
-
case 37:
|
|
215
|
-
case 38:
|
|
216
|
-
case 39:
|
|
217
|
-
case 40:
|
|
218
|
-
case 42:
|
|
219
|
-
this.enterOuterAlt(localctx, 1);
|
|
220
|
-
{
|
|
221
|
-
this.state = 61;
|
|
222
|
-
this.value();
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
case 35:
|
|
226
|
-
this.enterOuterAlt(localctx, 2);
|
|
227
|
-
{
|
|
228
|
-
this.state = 62;
|
|
229
|
-
this.qualifiedIdentifier();
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
232
|
-
case 6:
|
|
233
|
-
this.enterOuterAlt(localctx, 3);
|
|
234
|
-
{
|
|
235
|
-
this.state = 63;
|
|
236
|
-
this.externalConstant();
|
|
237
|
-
}
|
|
238
|
-
break;
|
|
239
|
-
case 7:
|
|
240
|
-
this.enterOuterAlt(localctx, 4);
|
|
241
|
-
{
|
|
242
|
-
this.state = 64;
|
|
243
|
-
this.arrayValue();
|
|
244
|
-
}
|
|
245
|
-
break;
|
|
246
|
-
default:
|
|
247
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
catch (re) {
|
|
251
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
252
|
-
localctx.exception = re;
|
|
253
|
-
this._errHandler.reportError(this, re);
|
|
254
|
-
this._errHandler.recover(this, re);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
throw re;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
finally {
|
|
261
|
-
this.exitRule();
|
|
262
|
-
}
|
|
263
|
-
return localctx;
|
|
264
|
-
}
|
|
265
|
-
// @RuleVersion(0)
|
|
266
|
-
parenthesizedItem() {
|
|
267
|
-
let localctx = new ParenthesizedItemContext(this, this._ctx, this.state);
|
|
268
|
-
this.enterRule(localctx, 8, OpraFilterParser.RULE_parenthesizedItem);
|
|
269
|
-
try {
|
|
270
|
-
this.enterOuterAlt(localctx, 1);
|
|
271
|
-
{
|
|
272
|
-
this.state = 67;
|
|
273
|
-
this.expression(0);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
catch (re) {
|
|
277
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
278
|
-
localctx.exception = re;
|
|
279
|
-
this._errHandler.reportError(this, re);
|
|
280
|
-
this._errHandler.recover(this, re);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
throw re;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
finally {
|
|
287
|
-
this.exitRule();
|
|
288
|
-
}
|
|
289
|
-
return localctx;
|
|
290
|
-
}
|
|
291
|
-
// @RuleVersion(0)
|
|
292
|
-
value() {
|
|
293
|
-
let localctx = new ValueContext(this, this._ctx, this.state);
|
|
294
|
-
this.enterRule(localctx, 10, OpraFilterParser.RULE_value);
|
|
295
|
-
try {
|
|
296
|
-
this.state = 77;
|
|
297
|
-
this._errHandler.sync(this);
|
|
298
|
-
switch (this._input.LA(1)) {
|
|
299
|
-
case 40:
|
|
300
|
-
localctx = new NumberLiteralContext(this, localctx);
|
|
301
|
-
this.enterOuterAlt(localctx, 1);
|
|
302
|
-
{
|
|
303
|
-
this.state = 69;
|
|
304
|
-
this.match(OpraFilterParser.NUMBER);
|
|
305
|
-
}
|
|
306
|
-
break;
|
|
307
|
-
case 13:
|
|
308
|
-
case 14:
|
|
309
|
-
localctx = new InfinityLiteralContext(this, localctx);
|
|
310
|
-
this.enterOuterAlt(localctx, 2);
|
|
311
|
-
{
|
|
312
|
-
this.state = 70;
|
|
313
|
-
this.infinity();
|
|
314
|
-
}
|
|
315
|
-
break;
|
|
316
|
-
case 10:
|
|
317
|
-
case 11:
|
|
318
|
-
localctx = new BooleanLiteralContext(this, localctx);
|
|
319
|
-
this.enterOuterAlt(localctx, 3);
|
|
320
|
-
{
|
|
321
|
-
this.state = 71;
|
|
322
|
-
this.boolean_();
|
|
323
|
-
}
|
|
324
|
-
break;
|
|
325
|
-
case 12:
|
|
326
|
-
localctx = new NullLiteralContext(this, localctx);
|
|
327
|
-
this.enterOuterAlt(localctx, 4);
|
|
328
|
-
{
|
|
329
|
-
this.state = 72;
|
|
330
|
-
this.null_();
|
|
331
|
-
}
|
|
332
|
-
break;
|
|
333
|
-
case 38:
|
|
334
|
-
localctx = new DateTimeLiteralContext(this, localctx);
|
|
335
|
-
this.enterOuterAlt(localctx, 5);
|
|
336
|
-
{
|
|
337
|
-
this.state = 73;
|
|
338
|
-
this.match(OpraFilterParser.DATETIME);
|
|
339
|
-
}
|
|
340
|
-
break;
|
|
341
|
-
case 37:
|
|
342
|
-
localctx = new DateLiteralContext(this, localctx);
|
|
343
|
-
this.enterOuterAlt(localctx, 6);
|
|
344
|
-
{
|
|
345
|
-
this.state = 74;
|
|
346
|
-
this.match(OpraFilterParser.DATE);
|
|
347
|
-
}
|
|
348
|
-
break;
|
|
349
|
-
case 39:
|
|
350
|
-
localctx = new TimeLiteralContext(this, localctx);
|
|
351
|
-
this.enterOuterAlt(localctx, 7);
|
|
352
|
-
{
|
|
353
|
-
this.state = 75;
|
|
354
|
-
this.match(OpraFilterParser.TIME);
|
|
355
|
-
}
|
|
356
|
-
break;
|
|
357
|
-
case 42:
|
|
358
|
-
localctx = new StringLiteralContext(this, localctx);
|
|
359
|
-
this.enterOuterAlt(localctx, 8);
|
|
360
|
-
{
|
|
361
|
-
this.state = 76;
|
|
362
|
-
this.match(OpraFilterParser.STRING);
|
|
363
|
-
}
|
|
364
|
-
break;
|
|
365
|
-
default:
|
|
366
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
catch (re) {
|
|
370
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
371
|
-
localctx.exception = re;
|
|
372
|
-
this._errHandler.reportError(this, re);
|
|
373
|
-
this._errHandler.recover(this, re);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
throw re;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
finally {
|
|
380
|
-
this.exitRule();
|
|
381
|
-
}
|
|
382
|
-
return localctx;
|
|
383
|
-
}
|
|
384
|
-
// @RuleVersion(0)
|
|
385
|
-
qualifiedIdentifier() {
|
|
386
|
-
let localctx = new QualifiedIdentifierContext(this, this._ctx, this.state);
|
|
387
|
-
this.enterRule(localctx, 12, OpraFilterParser.RULE_qualifiedIdentifier);
|
|
388
|
-
try {
|
|
389
|
-
let _alt;
|
|
390
|
-
this.enterOuterAlt(localctx, 1);
|
|
391
|
-
{
|
|
392
|
-
this.state = 84;
|
|
393
|
-
this._errHandler.sync(this);
|
|
394
|
-
_alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
|
|
395
|
-
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
396
|
-
if (_alt === 1) {
|
|
397
|
-
{
|
|
398
|
-
{
|
|
399
|
-
this.state = 79;
|
|
400
|
-
this.identifier();
|
|
401
|
-
this.state = 80;
|
|
402
|
-
this.match(OpraFilterParser.T__4);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
this.state = 86;
|
|
407
|
-
this._errHandler.sync(this);
|
|
408
|
-
_alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
|
|
409
|
-
}
|
|
410
|
-
this.state = 87;
|
|
411
|
-
this.identifier();
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
catch (re) {
|
|
415
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
416
|
-
localctx.exception = re;
|
|
417
|
-
this._errHandler.reportError(this, re);
|
|
418
|
-
this._errHandler.recover(this, re);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
throw re;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
finally {
|
|
425
|
-
this.exitRule();
|
|
426
|
-
}
|
|
427
|
-
return localctx;
|
|
428
|
-
}
|
|
429
|
-
// @RuleVersion(0)
|
|
430
|
-
externalConstant() {
|
|
431
|
-
let localctx = new ExternalConstantContext(this, this._ctx, this.state);
|
|
432
|
-
this.enterRule(localctx, 14, OpraFilterParser.RULE_externalConstant);
|
|
433
|
-
try {
|
|
434
|
-
this.enterOuterAlt(localctx, 1);
|
|
435
|
-
{
|
|
436
|
-
this.state = 89;
|
|
437
|
-
this.match(OpraFilterParser.T__5);
|
|
438
|
-
this.state = 90;
|
|
439
|
-
this.identifier();
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
catch (re) {
|
|
443
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
444
|
-
localctx.exception = re;
|
|
445
|
-
this._errHandler.reportError(this, re);
|
|
446
|
-
this._errHandler.recover(this, re);
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
throw re;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
finally {
|
|
453
|
-
this.exitRule();
|
|
454
|
-
}
|
|
455
|
-
return localctx;
|
|
456
|
-
}
|
|
457
|
-
// @RuleVersion(0)
|
|
458
|
-
identifier() {
|
|
459
|
-
let localctx = new IdentifierContext(this, this._ctx, this.state);
|
|
460
|
-
this.enterRule(localctx, 16, OpraFilterParser.RULE_identifier);
|
|
461
|
-
try {
|
|
462
|
-
this.enterOuterAlt(localctx, 1);
|
|
463
|
-
{
|
|
464
|
-
this.state = 92;
|
|
465
|
-
this.match(OpraFilterParser.IDENTIFIER);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
catch (re) {
|
|
469
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
470
|
-
localctx.exception = re;
|
|
471
|
-
this._errHandler.reportError(this, re);
|
|
472
|
-
this._errHandler.recover(this, re);
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
throw re;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
finally {
|
|
479
|
-
this.exitRule();
|
|
480
|
-
}
|
|
481
|
-
return localctx;
|
|
482
|
-
}
|
|
483
|
-
// @RuleVersion(0)
|
|
484
|
-
arrayValue() {
|
|
485
|
-
let localctx = new ArrayValueContext(this, this._ctx, this.state);
|
|
486
|
-
this.enterRule(localctx, 18, OpraFilterParser.RULE_arrayValue);
|
|
487
|
-
let _la;
|
|
488
|
-
try {
|
|
489
|
-
this.enterOuterAlt(localctx, 1);
|
|
490
|
-
{
|
|
491
|
-
this.state = 94;
|
|
492
|
-
this.match(OpraFilterParser.T__6);
|
|
493
|
-
this.state = 95;
|
|
494
|
-
this.value();
|
|
495
|
-
this.state = 100;
|
|
496
|
-
this._errHandler.sync(this);
|
|
497
|
-
_la = this._input.LA(1);
|
|
498
|
-
while (_la === 8) {
|
|
499
|
-
{
|
|
500
|
-
{
|
|
501
|
-
this.state = 96;
|
|
502
|
-
this.match(OpraFilterParser.T__7);
|
|
503
|
-
this.state = 97;
|
|
504
|
-
this.value();
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
this.state = 102;
|
|
508
|
-
this._errHandler.sync(this);
|
|
509
|
-
_la = this._input.LA(1);
|
|
510
|
-
}
|
|
511
|
-
this.state = 103;
|
|
512
|
-
this.match(OpraFilterParser.T__8);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
catch (re) {
|
|
516
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
517
|
-
localctx.exception = re;
|
|
518
|
-
this._errHandler.reportError(this, re);
|
|
519
|
-
this._errHandler.recover(this, re);
|
|
520
|
-
}
|
|
521
|
-
else {
|
|
522
|
-
throw re;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
finally {
|
|
526
|
-
this.exitRule();
|
|
527
|
-
}
|
|
528
|
-
return localctx;
|
|
529
|
-
}
|
|
530
|
-
// @RuleVersion(0)
|
|
531
|
-
boolean_() {
|
|
532
|
-
let localctx = new BooleanContext(this, this._ctx, this.state);
|
|
533
|
-
this.enterRule(localctx, 20, OpraFilterParser.RULE_boolean);
|
|
534
|
-
let _la;
|
|
535
|
-
try {
|
|
536
|
-
this.enterOuterAlt(localctx, 1);
|
|
537
|
-
{
|
|
538
|
-
this.state = 105;
|
|
539
|
-
_la = this._input.LA(1);
|
|
540
|
-
if (!(_la === 10 || _la === 11)) {
|
|
541
|
-
this._errHandler.recoverInline(this);
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
this._errHandler.reportMatch(this);
|
|
545
|
-
this.consume();
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
catch (re) {
|
|
550
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
551
|
-
localctx.exception = re;
|
|
552
|
-
this._errHandler.reportError(this, re);
|
|
553
|
-
this._errHandler.recover(this, re);
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
throw re;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
finally {
|
|
560
|
-
this.exitRule();
|
|
561
|
-
}
|
|
562
|
-
return localctx;
|
|
563
|
-
}
|
|
564
|
-
// @RuleVersion(0)
|
|
565
|
-
null_() {
|
|
566
|
-
let localctx = new NullContext(this, this._ctx, this.state);
|
|
567
|
-
this.enterRule(localctx, 22, OpraFilterParser.RULE_null);
|
|
568
|
-
try {
|
|
569
|
-
this.enterOuterAlt(localctx, 1);
|
|
570
|
-
{
|
|
571
|
-
this.state = 107;
|
|
572
|
-
this.match(OpraFilterParser.T__11);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
catch (re) {
|
|
576
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
577
|
-
localctx.exception = re;
|
|
578
|
-
this._errHandler.reportError(this, re);
|
|
579
|
-
this._errHandler.recover(this, re);
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
throw re;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
finally {
|
|
586
|
-
this.exitRule();
|
|
587
|
-
}
|
|
588
|
-
return localctx;
|
|
589
|
-
}
|
|
590
|
-
// @RuleVersion(0)
|
|
591
|
-
infinity() {
|
|
592
|
-
let localctx = new InfinityContext(this, this._ctx, this.state);
|
|
593
|
-
this.enterRule(localctx, 24, OpraFilterParser.RULE_infinity);
|
|
594
|
-
let _la;
|
|
595
|
-
try {
|
|
596
|
-
this.enterOuterAlt(localctx, 1);
|
|
597
|
-
{
|
|
598
|
-
this.state = 109;
|
|
599
|
-
_la = this._input.LA(1);
|
|
600
|
-
if (!(_la === 13 || _la === 14)) {
|
|
601
|
-
this._errHandler.recoverInline(this);
|
|
602
|
-
}
|
|
603
|
-
else {
|
|
604
|
-
this._errHandler.reportMatch(this);
|
|
605
|
-
this.consume();
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
catch (re) {
|
|
610
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
611
|
-
localctx.exception = re;
|
|
612
|
-
this._errHandler.reportError(this, re);
|
|
613
|
-
this._errHandler.recover(this, re);
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
throw re;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
finally {
|
|
620
|
-
this.exitRule();
|
|
621
|
-
}
|
|
622
|
-
return localctx;
|
|
623
|
-
}
|
|
624
|
-
// @RuleVersion(0)
|
|
625
|
-
arithmeticOperator() {
|
|
626
|
-
let localctx = new ArithmeticOperatorContext(this, this._ctx, this.state);
|
|
627
|
-
this.enterRule(localctx, 26, OpraFilterParser.RULE_arithmeticOperator);
|
|
628
|
-
let _la;
|
|
629
|
-
try {
|
|
630
|
-
this.enterOuterAlt(localctx, 1);
|
|
631
|
-
{
|
|
632
|
-
this.state = 111;
|
|
633
|
-
_la = this._input.LA(1);
|
|
634
|
-
if (!((_la & ~0x1f) === 0 && ((1 << _la) & 491520) !== 0)) {
|
|
635
|
-
this._errHandler.recoverInline(this);
|
|
636
|
-
}
|
|
637
|
-
else {
|
|
638
|
-
this._errHandler.reportMatch(this);
|
|
639
|
-
this.consume();
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
catch (re) {
|
|
644
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
645
|
-
localctx.exception = re;
|
|
646
|
-
this._errHandler.reportError(this, re);
|
|
647
|
-
this._errHandler.recover(this, re);
|
|
648
|
-
}
|
|
649
|
-
else {
|
|
650
|
-
throw re;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
finally {
|
|
654
|
-
this.exitRule();
|
|
655
|
-
}
|
|
656
|
-
return localctx;
|
|
657
|
-
}
|
|
658
|
-
// @RuleVersion(0)
|
|
659
|
-
comparisonOperator() {
|
|
660
|
-
let localctx = new ComparisonOperatorContext(this, this._ctx, this.state);
|
|
661
|
-
this.enterRule(localctx, 28, OpraFilterParser.RULE_comparisonOperator);
|
|
662
|
-
let _la;
|
|
663
|
-
try {
|
|
664
|
-
this.enterOuterAlt(localctx, 1);
|
|
665
|
-
{
|
|
666
|
-
this.state = 113;
|
|
667
|
-
_la = this._input.LA(1);
|
|
668
|
-
if (!((_la & ~0x1f) === 0 && ((1 << _la) & 2146959360) !== 0)) {
|
|
669
|
-
this._errHandler.recoverInline(this);
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
this._errHandler.reportMatch(this);
|
|
673
|
-
this.consume();
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
catch (re) {
|
|
678
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
679
|
-
localctx.exception = re;
|
|
680
|
-
this._errHandler.reportError(this, re);
|
|
681
|
-
this._errHandler.recover(this, re);
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
throw re;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
finally {
|
|
688
|
-
this.exitRule();
|
|
689
|
-
}
|
|
690
|
-
return localctx;
|
|
691
|
-
}
|
|
692
|
-
// @RuleVersion(0)
|
|
693
|
-
logicalOperator() {
|
|
694
|
-
let localctx = new LogicalOperatorContext(this, this._ctx, this.state);
|
|
695
|
-
this.enterRule(localctx, 30, OpraFilterParser.RULE_logicalOperator);
|
|
696
|
-
let _la;
|
|
697
|
-
try {
|
|
698
|
-
this.enterOuterAlt(localctx, 1);
|
|
699
|
-
{
|
|
700
|
-
this.state = 115;
|
|
701
|
-
_la = this._input.LA(1);
|
|
702
|
-
if (!(((_la - 31) & ~0x1f) === 0 && ((1 << (_la - 31)) & 15) !== 0)) {
|
|
703
|
-
this._errHandler.recoverInline(this);
|
|
704
|
-
}
|
|
705
|
-
else {
|
|
706
|
-
this._errHandler.reportMatch(this);
|
|
707
|
-
this.consume();
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
catch (re) {
|
|
712
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
713
|
-
localctx.exception = re;
|
|
714
|
-
this._errHandler.reportError(this, re);
|
|
715
|
-
this._errHandler.recover(this, re);
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
throw re;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
finally {
|
|
722
|
-
this.exitRule();
|
|
723
|
-
}
|
|
724
|
-
return localctx;
|
|
725
|
-
}
|
|
726
|
-
// @RuleVersion(0)
|
|
727
|
-
polarityOperator() {
|
|
728
|
-
let localctx = new PolarityOperatorContext(this, this._ctx, this.state);
|
|
729
|
-
this.enterRule(localctx, 32, OpraFilterParser.RULE_polarityOperator);
|
|
730
|
-
try {
|
|
731
|
-
this.enterOuterAlt(localctx, 1);
|
|
732
|
-
{
|
|
733
|
-
this.state = 117;
|
|
734
|
-
this.match(OpraFilterParser.POLAR_OP);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
catch (re) {
|
|
738
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
739
|
-
localctx.exception = re;
|
|
740
|
-
this._errHandler.reportError(this, re);
|
|
741
|
-
this._errHandler.recover(this, re);
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
throw re;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
finally {
|
|
748
|
-
this.exitRule();
|
|
749
|
-
}
|
|
750
|
-
return localctx;
|
|
751
|
-
}
|
|
752
|
-
sempred(localctx, ruleIndex, predIndex) {
|
|
753
|
-
switch (ruleIndex) {
|
|
754
|
-
case 1:
|
|
755
|
-
return this.expression_sempred(localctx, predIndex);
|
|
756
|
-
}
|
|
757
|
-
return true;
|
|
758
|
-
}
|
|
759
|
-
expression_sempred(localctx, predIndex) {
|
|
760
|
-
switch (predIndex) {
|
|
761
|
-
case 0:
|
|
762
|
-
return this.precpred(this._ctx, 3);
|
|
763
|
-
}
|
|
764
|
-
return true;
|
|
765
|
-
}
|
|
766
|
-
static get _ATN() {
|
|
767
|
-
if (!OpraFilterParser.__ATN) {
|
|
768
|
-
OpraFilterParser.__ATN = new antlr4_1.ATNDeserializer().deserialize(OpraFilterParser._serializedATN);
|
|
769
|
-
}
|
|
770
|
-
return OpraFilterParser.__ATN;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
OpraFilterParser.T__0 = 1;
|
|
774
|
-
OpraFilterParser.T__1 = 2;
|
|
775
|
-
OpraFilterParser.T__2 = 3;
|
|
776
|
-
OpraFilterParser.T__3 = 4;
|
|
777
|
-
OpraFilterParser.T__4 = 5;
|
|
778
|
-
OpraFilterParser.T__5 = 6;
|
|
779
|
-
OpraFilterParser.T__6 = 7;
|
|
780
|
-
OpraFilterParser.T__7 = 8;
|
|
781
|
-
OpraFilterParser.T__8 = 9;
|
|
782
|
-
OpraFilterParser.T__9 = 10;
|
|
783
|
-
OpraFilterParser.T__10 = 11;
|
|
784
|
-
OpraFilterParser.T__11 = 12;
|
|
785
|
-
OpraFilterParser.T__12 = 13;
|
|
786
|
-
OpraFilterParser.T__13 = 14;
|
|
787
|
-
OpraFilterParser.T__14 = 15;
|
|
788
|
-
OpraFilterParser.T__15 = 16;
|
|
789
|
-
OpraFilterParser.T__16 = 17;
|
|
790
|
-
OpraFilterParser.T__17 = 18;
|
|
791
|
-
OpraFilterParser.T__18 = 19;
|
|
792
|
-
OpraFilterParser.T__19 = 20;
|
|
793
|
-
OpraFilterParser.T__20 = 21;
|
|
794
|
-
OpraFilterParser.T__21 = 22;
|
|
795
|
-
OpraFilterParser.T__22 = 23;
|
|
796
|
-
OpraFilterParser.T__23 = 24;
|
|
797
|
-
OpraFilterParser.T__24 = 25;
|
|
798
|
-
OpraFilterParser.T__25 = 26;
|
|
799
|
-
OpraFilterParser.T__26 = 27;
|
|
800
|
-
OpraFilterParser.T__27 = 28;
|
|
801
|
-
OpraFilterParser.T__28 = 29;
|
|
802
|
-
OpraFilterParser.T__29 = 30;
|
|
803
|
-
OpraFilterParser.T__30 = 31;
|
|
804
|
-
OpraFilterParser.T__31 = 32;
|
|
805
|
-
OpraFilterParser.T__32 = 33;
|
|
806
|
-
OpraFilterParser.T__33 = 34;
|
|
807
|
-
OpraFilterParser.IDENTIFIER = 35;
|
|
808
|
-
OpraFilterParser.POLAR_OP = 36;
|
|
809
|
-
OpraFilterParser.DATE = 37;
|
|
810
|
-
OpraFilterParser.DATETIME = 38;
|
|
811
|
-
OpraFilterParser.TIME = 39;
|
|
812
|
-
OpraFilterParser.NUMBER = 40;
|
|
813
|
-
OpraFilterParser.INTEGER = 41;
|
|
814
|
-
OpraFilterParser.STRING = 42;
|
|
815
|
-
OpraFilterParser.WHITESPACE = 43;
|
|
816
|
-
OpraFilterParser.EOF = antlr4_1.Token.EOF;
|
|
817
|
-
OpraFilterParser.RULE_root = 0;
|
|
818
|
-
OpraFilterParser.RULE_expression = 1;
|
|
819
|
-
OpraFilterParser.RULE_comparisonLeft = 2;
|
|
820
|
-
OpraFilterParser.RULE_comparisonRight = 3;
|
|
821
|
-
OpraFilterParser.RULE_parenthesizedItem = 4;
|
|
822
|
-
OpraFilterParser.RULE_value = 5;
|
|
823
|
-
OpraFilterParser.RULE_qualifiedIdentifier = 6;
|
|
824
|
-
OpraFilterParser.RULE_externalConstant = 7;
|
|
825
|
-
OpraFilterParser.RULE_identifier = 8;
|
|
826
|
-
OpraFilterParser.RULE_arrayValue = 9;
|
|
827
|
-
OpraFilterParser.RULE_boolean = 10;
|
|
828
|
-
OpraFilterParser.RULE_null = 11;
|
|
829
|
-
OpraFilterParser.RULE_infinity = 12;
|
|
830
|
-
OpraFilterParser.RULE_arithmeticOperator = 13;
|
|
831
|
-
OpraFilterParser.RULE_comparisonOperator = 14;
|
|
832
|
-
OpraFilterParser.RULE_logicalOperator = 15;
|
|
833
|
-
OpraFilterParser.RULE_polarityOperator = 16;
|
|
834
|
-
OpraFilterParser.literalNames = [
|
|
835
|
-
null,
|
|
836
|
-
"'('",
|
|
837
|
-
"')'",
|
|
838
|
-
"'not'",
|
|
839
|
-
"'!'",
|
|
840
|
-
"'.'",
|
|
841
|
-
"'@'",
|
|
842
|
-
"'['",
|
|
843
|
-
"','",
|
|
844
|
-
"']'",
|
|
845
|
-
"'true'",
|
|
846
|
-
"'false'",
|
|
847
|
-
"'null'",
|
|
848
|
-
"'Infinity'",
|
|
849
|
-
"'infinity'",
|
|
850
|
-
"'+'",
|
|
851
|
-
"'-'",
|
|
852
|
-
"'*'",
|
|
853
|
-
"'/'",
|
|
854
|
-
"'<='",
|
|
855
|
-
"'<'",
|
|
856
|
-
"'>'",
|
|
857
|
-
"'>='",
|
|
858
|
-
"'='",
|
|
859
|
-
"'!='",
|
|
860
|
-
"'in'",
|
|
861
|
-
"'!in'",
|
|
862
|
-
"'like'",
|
|
863
|
-
"'!like'",
|
|
864
|
-
"'ilike'",
|
|
865
|
-
"'!ilike'",
|
|
866
|
-
"'and'",
|
|
867
|
-
"'or'",
|
|
868
|
-
"'&&'",
|
|
869
|
-
"'||'",
|
|
870
|
-
];
|
|
871
|
-
OpraFilterParser.symbolicNames = [
|
|
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
|
-
null,
|
|
905
|
-
null,
|
|
906
|
-
null,
|
|
907
|
-
'IDENTIFIER',
|
|
908
|
-
'POLAR_OP',
|
|
909
|
-
'DATE',
|
|
910
|
-
'DATETIME',
|
|
911
|
-
'TIME',
|
|
912
|
-
'NUMBER',
|
|
913
|
-
'INTEGER',
|
|
914
|
-
'STRING',
|
|
915
|
-
'WHITESPACE',
|
|
916
|
-
];
|
|
917
|
-
// tslint:disable:no-trailing-whitespace
|
|
918
|
-
OpraFilterParser.ruleNames = [
|
|
919
|
-
'root',
|
|
920
|
-
'expression',
|
|
921
|
-
'comparisonLeft',
|
|
922
|
-
'comparisonRight',
|
|
923
|
-
'parenthesizedItem',
|
|
924
|
-
'value',
|
|
925
|
-
'qualifiedIdentifier',
|
|
926
|
-
'externalConstant',
|
|
927
|
-
'identifier',
|
|
928
|
-
'arrayValue',
|
|
929
|
-
'boolean',
|
|
930
|
-
'null',
|
|
931
|
-
'infinity',
|
|
932
|
-
'arithmeticOperator',
|
|
933
|
-
'comparisonOperator',
|
|
934
|
-
'logicalOperator',
|
|
935
|
-
'polarityOperator',
|
|
936
|
-
];
|
|
937
|
-
OpraFilterParser._serializedATN = [
|
|
938
|
-
4, 1, 43, 120, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
|
|
939
|
-
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,
|
|
940
|
-
11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7,
|
|
941
|
-
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,
|
|
942
|
-
1, 1, 1, 1, 3, 1, 49, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 55, 8, 1, 10, 1,
|
|
943
|
-
12, 1, 58, 9, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 66, 8, 3, 1, 4,
|
|
944
|
-
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,
|
|
945
|
-
1, 6, 1, 6, 5, 6, 83, 8, 6, 10, 6, 12, 6, 86, 9, 6, 1, 6, 1, 6, 1, 7, 1, 7,
|
|
946
|
-
1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 99, 8, 9, 10, 9, 12, 9, 102,
|
|
947
|
-
9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1,
|
|
948
|
-
14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 0, 1, 2, 17, 0, 2, 4, 6, 8,
|
|
949
|
-
10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 0, 6, 1, 0, 3, 4, 1, 0, 10,
|
|
950
|
-
11, 1, 0, 13, 14, 1, 0, 15, 18, 1, 0, 19, 30, 1, 0, 31, 34, 117, 0, 34, 1,
|
|
951
|
-
0, 0, 0, 2, 48, 1, 0, 0, 0, 4, 59, 1, 0, 0, 0, 6, 65, 1, 0, 0, 0, 8, 67, 1,
|
|
952
|
-
0, 0, 0, 10, 77, 1, 0, 0, 0, 12, 84, 1, 0, 0, 0, 14, 89, 1, 0, 0, 0, 16, 92,
|
|
953
|
-
1, 0, 0, 0, 18, 94, 1, 0, 0, 0, 20, 105, 1, 0, 0, 0, 22, 107, 1, 0, 0, 0,
|
|
954
|
-
24, 109, 1, 0, 0, 0, 26, 111, 1, 0, 0, 0, 28, 113, 1, 0, 0, 0, 30, 115, 1,
|
|
955
|
-
0, 0, 0, 32, 117, 1, 0, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 0, 0, 1, 36, 1,
|
|
956
|
-
1, 0, 0, 0, 37, 38, 6, 1, -1, 0, 38, 39, 3, 4, 2, 0, 39, 40, 3, 28, 14, 0,
|
|
957
|
-
40, 41, 3, 6, 3, 0, 41, 49, 1, 0, 0, 0, 42, 43, 5, 1, 0, 0, 43, 44, 3, 8, 4,
|
|
958
|
-
0, 44, 45, 5, 2, 0, 0, 45, 49, 1, 0, 0, 0, 46, 47, 7, 0, 0, 0, 47, 49, 3, 2,
|
|
959
|
-
1, 1, 48, 37, 1, 0, 0, 0, 48, 42, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 56, 1,
|
|
960
|
-
0, 0, 0, 50, 51, 10, 3, 0, 0, 51, 52, 3, 30, 15, 0, 52, 53, 3, 2, 1, 4, 53,
|
|
961
|
-
55, 1, 0, 0, 0, 54, 50, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0,
|
|
962
|
-
56, 57, 1, 0, 0, 0, 57, 3, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 60, 3, 12, 6,
|
|
963
|
-
0, 60, 5, 1, 0, 0, 0, 61, 66, 3, 10, 5, 0, 62, 66, 3, 12, 6, 0, 63, 66, 3,
|
|
964
|
-
14, 7, 0, 64, 66, 3, 18, 9, 0, 65, 61, 1, 0, 0, 0, 65, 62, 1, 0, 0, 0, 65,
|
|
965
|
-
63, 1, 0, 0, 0, 65, 64, 1, 0, 0, 0, 66, 7, 1, 0, 0, 0, 67, 68, 3, 2, 1, 0,
|
|
966
|
-
68, 9, 1, 0, 0, 0, 69, 78, 5, 40, 0, 0, 70, 78, 3, 24, 12, 0, 71, 78, 3, 20,
|
|
967
|
-
10, 0, 72, 78, 3, 22, 11, 0, 73, 78, 5, 38, 0, 0, 74, 78, 5, 37, 0, 0, 75,
|
|
968
|
-
78, 5, 39, 0, 0, 76, 78, 5, 42, 0, 0, 77, 69, 1, 0, 0, 0, 77, 70, 1, 0, 0,
|
|
969
|
-
0, 77, 71, 1, 0, 0, 0, 77, 72, 1, 0, 0, 0, 77, 73, 1, 0, 0, 0, 77, 74, 1, 0,
|
|
970
|
-
0, 0, 77, 75, 1, 0, 0, 0, 77, 76, 1, 0, 0, 0, 78, 11, 1, 0, 0, 0, 79, 80, 3,
|
|
971
|
-
16, 8, 0, 80, 81, 5, 5, 0, 0, 81, 83, 1, 0, 0, 0, 82, 79, 1, 0, 0, 0, 83,
|
|
972
|
-
86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 85, 1, 0, 0, 0, 85, 87, 1, 0, 0, 0,
|
|
973
|
-
86, 84, 1, 0, 0, 0, 87, 88, 3, 16, 8, 0, 88, 13, 1, 0, 0, 0, 89, 90, 5, 6,
|
|
974
|
-
0, 0, 90, 91, 3, 16, 8, 0, 91, 15, 1, 0, 0, 0, 92, 93, 5, 35, 0, 0, 93, 17,
|
|
975
|
-
1, 0, 0, 0, 94, 95, 5, 7, 0, 0, 95, 100, 3, 10, 5, 0, 96, 97, 5, 8, 0, 0,
|
|
976
|
-
97, 99, 3, 10, 5, 0, 98, 96, 1, 0, 0, 0, 99, 102, 1, 0, 0, 0, 100, 98, 1, 0,
|
|
977
|
-
0, 0, 100, 101, 1, 0, 0, 0, 101, 103, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 103,
|
|
978
|
-
104, 5, 9, 0, 0, 104, 19, 1, 0, 0, 0, 105, 106, 7, 1, 0, 0, 106, 21, 1, 0,
|
|
979
|
-
0, 0, 107, 108, 5, 12, 0, 0, 108, 23, 1, 0, 0, 0, 109, 110, 7, 2, 0, 0, 110,
|
|
980
|
-
25, 1, 0, 0, 0, 111, 112, 7, 3, 0, 0, 112, 27, 1, 0, 0, 0, 113, 114, 7, 4,
|
|
981
|
-
0, 0, 114, 29, 1, 0, 0, 0, 115, 116, 7, 5, 0, 0, 116, 31, 1, 0, 0, 0, 117,
|
|
982
|
-
118, 5, 36, 0, 0, 118, 33, 1, 0, 0, 0, 6, 48, 56, 65, 77, 84, 100,
|
|
983
|
-
];
|
|
984
|
-
OpraFilterParser.DecisionsToDFA = OpraFilterParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
985
|
-
exports.default = OpraFilterParser;
|
|
986
|
-
class RootContext extends antlr4_1.ParserRuleContext {
|
|
987
|
-
constructor(parser, parent, invokingState) {
|
|
988
|
-
super(parent, invokingState);
|
|
989
|
-
this.parser = parser;
|
|
990
|
-
}
|
|
991
|
-
expression() {
|
|
992
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
993
|
-
}
|
|
994
|
-
EOF() {
|
|
995
|
-
return this.getToken(OpraFilterParser.EOF, 0);
|
|
996
|
-
}
|
|
997
|
-
get ruleIndex() {
|
|
998
|
-
return OpraFilterParser.RULE_root;
|
|
999
|
-
}
|
|
1000
|
-
enterRule(listener) {
|
|
1001
|
-
if (listener.enterRoot) {
|
|
1002
|
-
listener.enterRoot(this);
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
exitRule(listener) {
|
|
1006
|
-
if (listener.exitRoot) {
|
|
1007
|
-
listener.exitRoot(this);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
// @Override
|
|
1011
|
-
accept(visitor) {
|
|
1012
|
-
if (visitor.visitRoot) {
|
|
1013
|
-
return visitor.visitRoot(this);
|
|
1014
|
-
}
|
|
1015
|
-
else {
|
|
1016
|
-
return visitor.visitChildren(this);
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
exports.RootContext = RootContext;
|
|
1021
|
-
class ExpressionContext extends antlr4_1.ParserRuleContext {
|
|
1022
|
-
constructor(parser, parent, invokingState) {
|
|
1023
|
-
super(parent, invokingState);
|
|
1024
|
-
this.parser = parser;
|
|
1025
|
-
}
|
|
1026
|
-
get ruleIndex() {
|
|
1027
|
-
return OpraFilterParser.RULE_expression;
|
|
1028
|
-
}
|
|
1029
|
-
copyFrom(ctx) {
|
|
1030
|
-
super.copyFrom(ctx);
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
exports.ExpressionContext = ExpressionContext;
|
|
1034
|
-
class ParenthesizedExpressionContext extends ExpressionContext {
|
|
1035
|
-
constructor(parser, ctx) {
|
|
1036
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1037
|
-
super.copyFrom(ctx);
|
|
1038
|
-
}
|
|
1039
|
-
parenthesizedItem() {
|
|
1040
|
-
return this.getTypedRuleContext(ParenthesizedItemContext, 0);
|
|
1041
|
-
}
|
|
1042
|
-
enterRule(listener) {
|
|
1043
|
-
if (listener.enterParenthesizedExpression) {
|
|
1044
|
-
listener.enterParenthesizedExpression(this);
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
exitRule(listener) {
|
|
1048
|
-
if (listener.exitParenthesizedExpression) {
|
|
1049
|
-
listener.exitParenthesizedExpression(this);
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
// @Override
|
|
1053
|
-
accept(visitor) {
|
|
1054
|
-
if (visitor.visitParenthesizedExpression) {
|
|
1055
|
-
return visitor.visitParenthesizedExpression(this);
|
|
1056
|
-
}
|
|
1057
|
-
else {
|
|
1058
|
-
return visitor.visitChildren(this);
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
exports.ParenthesizedExpressionContext = ParenthesizedExpressionContext;
|
|
1063
|
-
class NegativeExpressionContext extends ExpressionContext {
|
|
1064
|
-
constructor(parser, ctx) {
|
|
1065
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1066
|
-
super.copyFrom(ctx);
|
|
1067
|
-
}
|
|
1068
|
-
expression() {
|
|
1069
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
1070
|
-
}
|
|
1071
|
-
enterRule(listener) {
|
|
1072
|
-
if (listener.enterNegativeExpression) {
|
|
1073
|
-
listener.enterNegativeExpression(this);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
exitRule(listener) {
|
|
1077
|
-
if (listener.exitNegativeExpression) {
|
|
1078
|
-
listener.exitNegativeExpression(this);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
// @Override
|
|
1082
|
-
accept(visitor) {
|
|
1083
|
-
if (visitor.visitNegativeExpression) {
|
|
1084
|
-
return visitor.visitNegativeExpression(this);
|
|
1085
|
-
}
|
|
1086
|
-
else {
|
|
1087
|
-
return visitor.visitChildren(this);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
exports.NegativeExpressionContext = NegativeExpressionContext;
|
|
1092
|
-
class ComparisonExpressionContext extends ExpressionContext {
|
|
1093
|
-
constructor(parser, ctx) {
|
|
1094
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1095
|
-
super.copyFrom(ctx);
|
|
1096
|
-
}
|
|
1097
|
-
comparisonLeft() {
|
|
1098
|
-
return this.getTypedRuleContext(ComparisonLeftContext, 0);
|
|
1099
|
-
}
|
|
1100
|
-
comparisonOperator() {
|
|
1101
|
-
return this.getTypedRuleContext(ComparisonOperatorContext, 0);
|
|
1102
|
-
}
|
|
1103
|
-
comparisonRight() {
|
|
1104
|
-
return this.getTypedRuleContext(ComparisonRightContext, 0);
|
|
1105
|
-
}
|
|
1106
|
-
enterRule(listener) {
|
|
1107
|
-
if (listener.enterComparisonExpression) {
|
|
1108
|
-
listener.enterComparisonExpression(this);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
exitRule(listener) {
|
|
1112
|
-
if (listener.exitComparisonExpression) {
|
|
1113
|
-
listener.exitComparisonExpression(this);
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
// @Override
|
|
1117
|
-
accept(visitor) {
|
|
1118
|
-
if (visitor.visitComparisonExpression) {
|
|
1119
|
-
return visitor.visitComparisonExpression(this);
|
|
1120
|
-
}
|
|
1121
|
-
else {
|
|
1122
|
-
return visitor.visitChildren(this);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
exports.ComparisonExpressionContext = ComparisonExpressionContext;
|
|
1127
|
-
class LogicalExpressionContext extends ExpressionContext {
|
|
1128
|
-
constructor(parser, ctx) {
|
|
1129
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1130
|
-
super.copyFrom(ctx);
|
|
1131
|
-
}
|
|
1132
|
-
expression_list() {
|
|
1133
|
-
return this.getTypedRuleContexts(ExpressionContext);
|
|
1134
|
-
}
|
|
1135
|
-
expression(i) {
|
|
1136
|
-
return this.getTypedRuleContext(ExpressionContext, i);
|
|
1137
|
-
}
|
|
1138
|
-
logicalOperator() {
|
|
1139
|
-
return this.getTypedRuleContext(LogicalOperatorContext, 0);
|
|
1140
|
-
}
|
|
1141
|
-
enterRule(listener) {
|
|
1142
|
-
if (listener.enterLogicalExpression) {
|
|
1143
|
-
listener.enterLogicalExpression(this);
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
exitRule(listener) {
|
|
1147
|
-
if (listener.exitLogicalExpression) {
|
|
1148
|
-
listener.exitLogicalExpression(this);
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
// @Override
|
|
1152
|
-
accept(visitor) {
|
|
1153
|
-
if (visitor.visitLogicalExpression) {
|
|
1154
|
-
return visitor.visitLogicalExpression(this);
|
|
1155
|
-
}
|
|
1156
|
-
else {
|
|
1157
|
-
return visitor.visitChildren(this);
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
exports.LogicalExpressionContext = LogicalExpressionContext;
|
|
1162
|
-
class ComparisonLeftContext extends antlr4_1.ParserRuleContext {
|
|
1163
|
-
constructor(parser, parent, invokingState) {
|
|
1164
|
-
super(parent, invokingState);
|
|
1165
|
-
this.parser = parser;
|
|
1166
|
-
}
|
|
1167
|
-
qualifiedIdentifier() {
|
|
1168
|
-
return this.getTypedRuleContext(QualifiedIdentifierContext, 0);
|
|
1169
|
-
}
|
|
1170
|
-
get ruleIndex() {
|
|
1171
|
-
return OpraFilterParser.RULE_comparisonLeft;
|
|
1172
|
-
}
|
|
1173
|
-
enterRule(listener) {
|
|
1174
|
-
if (listener.enterComparisonLeft) {
|
|
1175
|
-
listener.enterComparisonLeft(this);
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
exitRule(listener) {
|
|
1179
|
-
if (listener.exitComparisonLeft) {
|
|
1180
|
-
listener.exitComparisonLeft(this);
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
// @Override
|
|
1184
|
-
accept(visitor) {
|
|
1185
|
-
if (visitor.visitComparisonLeft) {
|
|
1186
|
-
return visitor.visitComparisonLeft(this);
|
|
1187
|
-
}
|
|
1188
|
-
else {
|
|
1189
|
-
return visitor.visitChildren(this);
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
exports.ComparisonLeftContext = ComparisonLeftContext;
|
|
1194
|
-
class ComparisonRightContext extends antlr4_1.ParserRuleContext {
|
|
1195
|
-
constructor(parser, parent, invokingState) {
|
|
1196
|
-
super(parent, invokingState);
|
|
1197
|
-
this.parser = parser;
|
|
1198
|
-
}
|
|
1199
|
-
value() {
|
|
1200
|
-
return this.getTypedRuleContext(ValueContext, 0);
|
|
1201
|
-
}
|
|
1202
|
-
qualifiedIdentifier() {
|
|
1203
|
-
return this.getTypedRuleContext(QualifiedIdentifierContext, 0);
|
|
1204
|
-
}
|
|
1205
|
-
externalConstant() {
|
|
1206
|
-
return this.getTypedRuleContext(ExternalConstantContext, 0);
|
|
1207
|
-
}
|
|
1208
|
-
arrayValue() {
|
|
1209
|
-
return this.getTypedRuleContext(ArrayValueContext, 0);
|
|
1210
|
-
}
|
|
1211
|
-
get ruleIndex() {
|
|
1212
|
-
return OpraFilterParser.RULE_comparisonRight;
|
|
1213
|
-
}
|
|
1214
|
-
enterRule(listener) {
|
|
1215
|
-
if (listener.enterComparisonRight) {
|
|
1216
|
-
listener.enterComparisonRight(this);
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
exitRule(listener) {
|
|
1220
|
-
if (listener.exitComparisonRight) {
|
|
1221
|
-
listener.exitComparisonRight(this);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
// @Override
|
|
1225
|
-
accept(visitor) {
|
|
1226
|
-
if (visitor.visitComparisonRight) {
|
|
1227
|
-
return visitor.visitComparisonRight(this);
|
|
1228
|
-
}
|
|
1229
|
-
else {
|
|
1230
|
-
return visitor.visitChildren(this);
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
exports.ComparisonRightContext = ComparisonRightContext;
|
|
1235
|
-
class ParenthesizedItemContext extends antlr4_1.ParserRuleContext {
|
|
1236
|
-
constructor(parser, parent, invokingState) {
|
|
1237
|
-
super(parent, invokingState);
|
|
1238
|
-
this.parser = parser;
|
|
1239
|
-
}
|
|
1240
|
-
expression() {
|
|
1241
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
1242
|
-
}
|
|
1243
|
-
get ruleIndex() {
|
|
1244
|
-
return OpraFilterParser.RULE_parenthesizedItem;
|
|
1245
|
-
}
|
|
1246
|
-
enterRule(listener) {
|
|
1247
|
-
if (listener.enterParenthesizedItem) {
|
|
1248
|
-
listener.enterParenthesizedItem(this);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
exitRule(listener) {
|
|
1252
|
-
if (listener.exitParenthesizedItem) {
|
|
1253
|
-
listener.exitParenthesizedItem(this);
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
// @Override
|
|
1257
|
-
accept(visitor) {
|
|
1258
|
-
if (visitor.visitParenthesizedItem) {
|
|
1259
|
-
return visitor.visitParenthesizedItem(this);
|
|
1260
|
-
}
|
|
1261
|
-
else {
|
|
1262
|
-
return visitor.visitChildren(this);
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
exports.ParenthesizedItemContext = ParenthesizedItemContext;
|
|
1267
|
-
class ValueContext extends antlr4_1.ParserRuleContext {
|
|
1268
|
-
constructor(parser, parent, invokingState) {
|
|
1269
|
-
super(parent, invokingState);
|
|
1270
|
-
this.parser = parser;
|
|
1271
|
-
}
|
|
1272
|
-
get ruleIndex() {
|
|
1273
|
-
return OpraFilterParser.RULE_value;
|
|
1274
|
-
}
|
|
1275
|
-
copyFrom(ctx) {
|
|
1276
|
-
super.copyFrom(ctx);
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
exports.ValueContext = ValueContext;
|
|
1280
|
-
class TimeLiteralContext extends ValueContext {
|
|
1281
|
-
constructor(parser, ctx) {
|
|
1282
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1283
|
-
super.copyFrom(ctx);
|
|
1284
|
-
}
|
|
1285
|
-
TIME() {
|
|
1286
|
-
return this.getToken(OpraFilterParser.TIME, 0);
|
|
1287
|
-
}
|
|
1288
|
-
enterRule(listener) {
|
|
1289
|
-
if (listener.enterTimeLiteral) {
|
|
1290
|
-
listener.enterTimeLiteral(this);
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
exitRule(listener) {
|
|
1294
|
-
if (listener.exitTimeLiteral) {
|
|
1295
|
-
listener.exitTimeLiteral(this);
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
// @Override
|
|
1299
|
-
accept(visitor) {
|
|
1300
|
-
if (visitor.visitTimeLiteral) {
|
|
1301
|
-
return visitor.visitTimeLiteral(this);
|
|
1302
|
-
}
|
|
1303
|
-
else {
|
|
1304
|
-
return visitor.visitChildren(this);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
exports.TimeLiteralContext = TimeLiteralContext;
|
|
1309
|
-
class NullLiteralContext extends ValueContext {
|
|
1310
|
-
constructor(parser, ctx) {
|
|
1311
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1312
|
-
super.copyFrom(ctx);
|
|
1313
|
-
}
|
|
1314
|
-
null_() {
|
|
1315
|
-
return this.getTypedRuleContext(NullContext, 0);
|
|
1316
|
-
}
|
|
1317
|
-
enterRule(listener) {
|
|
1318
|
-
if (listener.enterNullLiteral) {
|
|
1319
|
-
listener.enterNullLiteral(this);
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
exitRule(listener) {
|
|
1323
|
-
if (listener.exitNullLiteral) {
|
|
1324
|
-
listener.exitNullLiteral(this);
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
// @Override
|
|
1328
|
-
accept(visitor) {
|
|
1329
|
-
if (visitor.visitNullLiteral) {
|
|
1330
|
-
return visitor.visitNullLiteral(this);
|
|
1331
|
-
}
|
|
1332
|
-
else {
|
|
1333
|
-
return visitor.visitChildren(this);
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
exports.NullLiteralContext = NullLiteralContext;
|
|
1338
|
-
class DateTimeLiteralContext extends ValueContext {
|
|
1339
|
-
constructor(parser, ctx) {
|
|
1340
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1341
|
-
super.copyFrom(ctx);
|
|
1342
|
-
}
|
|
1343
|
-
DATETIME() {
|
|
1344
|
-
return this.getToken(OpraFilterParser.DATETIME, 0);
|
|
1345
|
-
}
|
|
1346
|
-
enterRule(listener) {
|
|
1347
|
-
if (listener.enterDateTimeLiteral) {
|
|
1348
|
-
listener.enterDateTimeLiteral(this);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
exitRule(listener) {
|
|
1352
|
-
if (listener.exitDateTimeLiteral) {
|
|
1353
|
-
listener.exitDateTimeLiteral(this);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
// @Override
|
|
1357
|
-
accept(visitor) {
|
|
1358
|
-
if (visitor.visitDateTimeLiteral) {
|
|
1359
|
-
return visitor.visitDateTimeLiteral(this);
|
|
1360
|
-
}
|
|
1361
|
-
else {
|
|
1362
|
-
return visitor.visitChildren(this);
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
exports.DateTimeLiteralContext = DateTimeLiteralContext;
|
|
1367
|
-
class StringLiteralContext extends ValueContext {
|
|
1368
|
-
constructor(parser, ctx) {
|
|
1369
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1370
|
-
super.copyFrom(ctx);
|
|
1371
|
-
}
|
|
1372
|
-
STRING() {
|
|
1373
|
-
return this.getToken(OpraFilterParser.STRING, 0);
|
|
1374
|
-
}
|
|
1375
|
-
enterRule(listener) {
|
|
1376
|
-
if (listener.enterStringLiteral) {
|
|
1377
|
-
listener.enterStringLiteral(this);
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
exitRule(listener) {
|
|
1381
|
-
if (listener.exitStringLiteral) {
|
|
1382
|
-
listener.exitStringLiteral(this);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
// @Override
|
|
1386
|
-
accept(visitor) {
|
|
1387
|
-
if (visitor.visitStringLiteral) {
|
|
1388
|
-
return visitor.visitStringLiteral(this);
|
|
1389
|
-
}
|
|
1390
|
-
else {
|
|
1391
|
-
return visitor.visitChildren(this);
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
exports.StringLiteralContext = StringLiteralContext;
|
|
1396
|
-
class DateLiteralContext extends ValueContext {
|
|
1397
|
-
constructor(parser, ctx) {
|
|
1398
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1399
|
-
super.copyFrom(ctx);
|
|
1400
|
-
}
|
|
1401
|
-
DATE() {
|
|
1402
|
-
return this.getToken(OpraFilterParser.DATE, 0);
|
|
1403
|
-
}
|
|
1404
|
-
enterRule(listener) {
|
|
1405
|
-
if (listener.enterDateLiteral) {
|
|
1406
|
-
listener.enterDateLiteral(this);
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
exitRule(listener) {
|
|
1410
|
-
if (listener.exitDateLiteral) {
|
|
1411
|
-
listener.exitDateLiteral(this);
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
// @Override
|
|
1415
|
-
accept(visitor) {
|
|
1416
|
-
if (visitor.visitDateLiteral) {
|
|
1417
|
-
return visitor.visitDateLiteral(this);
|
|
1418
|
-
}
|
|
1419
|
-
else {
|
|
1420
|
-
return visitor.visitChildren(this);
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
exports.DateLiteralContext = DateLiteralContext;
|
|
1425
|
-
class InfinityLiteralContext extends ValueContext {
|
|
1426
|
-
constructor(parser, ctx) {
|
|
1427
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1428
|
-
super.copyFrom(ctx);
|
|
1429
|
-
}
|
|
1430
|
-
infinity() {
|
|
1431
|
-
return this.getTypedRuleContext(InfinityContext, 0);
|
|
1432
|
-
}
|
|
1433
|
-
enterRule(listener) {
|
|
1434
|
-
if (listener.enterInfinityLiteral) {
|
|
1435
|
-
listener.enterInfinityLiteral(this);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
exitRule(listener) {
|
|
1439
|
-
if (listener.exitInfinityLiteral) {
|
|
1440
|
-
listener.exitInfinityLiteral(this);
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
// @Override
|
|
1444
|
-
accept(visitor) {
|
|
1445
|
-
if (visitor.visitInfinityLiteral) {
|
|
1446
|
-
return visitor.visitInfinityLiteral(this);
|
|
1447
|
-
}
|
|
1448
|
-
else {
|
|
1449
|
-
return visitor.visitChildren(this);
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
exports.InfinityLiteralContext = InfinityLiteralContext;
|
|
1454
|
-
class BooleanLiteralContext extends ValueContext {
|
|
1455
|
-
constructor(parser, ctx) {
|
|
1456
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1457
|
-
super.copyFrom(ctx);
|
|
1458
|
-
}
|
|
1459
|
-
boolean_() {
|
|
1460
|
-
return this.getTypedRuleContext(BooleanContext, 0);
|
|
1461
|
-
}
|
|
1462
|
-
enterRule(listener) {
|
|
1463
|
-
if (listener.enterBooleanLiteral) {
|
|
1464
|
-
listener.enterBooleanLiteral(this);
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
exitRule(listener) {
|
|
1468
|
-
if (listener.exitBooleanLiteral) {
|
|
1469
|
-
listener.exitBooleanLiteral(this);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
// @Override
|
|
1473
|
-
accept(visitor) {
|
|
1474
|
-
if (visitor.visitBooleanLiteral) {
|
|
1475
|
-
return visitor.visitBooleanLiteral(this);
|
|
1476
|
-
}
|
|
1477
|
-
else {
|
|
1478
|
-
return visitor.visitChildren(this);
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
exports.BooleanLiteralContext = BooleanLiteralContext;
|
|
1483
|
-
class NumberLiteralContext extends ValueContext {
|
|
1484
|
-
constructor(parser, ctx) {
|
|
1485
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
1486
|
-
super.copyFrom(ctx);
|
|
1487
|
-
}
|
|
1488
|
-
NUMBER() {
|
|
1489
|
-
return this.getToken(OpraFilterParser.NUMBER, 0);
|
|
1490
|
-
}
|
|
1491
|
-
enterRule(listener) {
|
|
1492
|
-
if (listener.enterNumberLiteral) {
|
|
1493
|
-
listener.enterNumberLiteral(this);
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
exitRule(listener) {
|
|
1497
|
-
if (listener.exitNumberLiteral) {
|
|
1498
|
-
listener.exitNumberLiteral(this);
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
// @Override
|
|
1502
|
-
accept(visitor) {
|
|
1503
|
-
if (visitor.visitNumberLiteral) {
|
|
1504
|
-
return visitor.visitNumberLiteral(this);
|
|
1505
|
-
}
|
|
1506
|
-
else {
|
|
1507
|
-
return visitor.visitChildren(this);
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
exports.NumberLiteralContext = NumberLiteralContext;
|
|
1512
|
-
class QualifiedIdentifierContext extends antlr4_1.ParserRuleContext {
|
|
1513
|
-
constructor(parser, parent, invokingState) {
|
|
1514
|
-
super(parent, invokingState);
|
|
1515
|
-
this.parser = parser;
|
|
1516
|
-
}
|
|
1517
|
-
identifier_list() {
|
|
1518
|
-
return this.getTypedRuleContexts(IdentifierContext);
|
|
1519
|
-
}
|
|
1520
|
-
identifier(i) {
|
|
1521
|
-
return this.getTypedRuleContext(IdentifierContext, i);
|
|
1522
|
-
}
|
|
1523
|
-
get ruleIndex() {
|
|
1524
|
-
return OpraFilterParser.RULE_qualifiedIdentifier;
|
|
1525
|
-
}
|
|
1526
|
-
enterRule(listener) {
|
|
1527
|
-
if (listener.enterQualifiedIdentifier) {
|
|
1528
|
-
listener.enterQualifiedIdentifier(this);
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
exitRule(listener) {
|
|
1532
|
-
if (listener.exitQualifiedIdentifier) {
|
|
1533
|
-
listener.exitQualifiedIdentifier(this);
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
// @Override
|
|
1537
|
-
accept(visitor) {
|
|
1538
|
-
if (visitor.visitQualifiedIdentifier) {
|
|
1539
|
-
return visitor.visitQualifiedIdentifier(this);
|
|
1540
|
-
}
|
|
1541
|
-
else {
|
|
1542
|
-
return visitor.visitChildren(this);
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
exports.QualifiedIdentifierContext = QualifiedIdentifierContext;
|
|
1547
|
-
class ExternalConstantContext extends antlr4_1.ParserRuleContext {
|
|
1548
|
-
constructor(parser, parent, invokingState) {
|
|
1549
|
-
super(parent, invokingState);
|
|
1550
|
-
this.parser = parser;
|
|
1551
|
-
}
|
|
1552
|
-
identifier() {
|
|
1553
|
-
return this.getTypedRuleContext(IdentifierContext, 0);
|
|
1554
|
-
}
|
|
1555
|
-
get ruleIndex() {
|
|
1556
|
-
return OpraFilterParser.RULE_externalConstant;
|
|
1557
|
-
}
|
|
1558
|
-
enterRule(listener) {
|
|
1559
|
-
if (listener.enterExternalConstant) {
|
|
1560
|
-
listener.enterExternalConstant(this);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
exitRule(listener) {
|
|
1564
|
-
if (listener.exitExternalConstant) {
|
|
1565
|
-
listener.exitExternalConstant(this);
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
// @Override
|
|
1569
|
-
accept(visitor) {
|
|
1570
|
-
if (visitor.visitExternalConstant) {
|
|
1571
|
-
return visitor.visitExternalConstant(this);
|
|
1572
|
-
}
|
|
1573
|
-
else {
|
|
1574
|
-
return visitor.visitChildren(this);
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
exports.ExternalConstantContext = ExternalConstantContext;
|
|
1579
|
-
class IdentifierContext extends antlr4_1.ParserRuleContext {
|
|
1580
|
-
constructor(parser, parent, invokingState) {
|
|
1581
|
-
super(parent, invokingState);
|
|
1582
|
-
this.parser = parser;
|
|
1583
|
-
}
|
|
1584
|
-
IDENTIFIER() {
|
|
1585
|
-
return this.getToken(OpraFilterParser.IDENTIFIER, 0);
|
|
1586
|
-
}
|
|
1587
|
-
get ruleIndex() {
|
|
1588
|
-
return OpraFilterParser.RULE_identifier;
|
|
1589
|
-
}
|
|
1590
|
-
enterRule(listener) {
|
|
1591
|
-
if (listener.enterIdentifier) {
|
|
1592
|
-
listener.enterIdentifier(this);
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
exitRule(listener) {
|
|
1596
|
-
if (listener.exitIdentifier) {
|
|
1597
|
-
listener.exitIdentifier(this);
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
// @Override
|
|
1601
|
-
accept(visitor) {
|
|
1602
|
-
if (visitor.visitIdentifier) {
|
|
1603
|
-
return visitor.visitIdentifier(this);
|
|
1604
|
-
}
|
|
1605
|
-
else {
|
|
1606
|
-
return visitor.visitChildren(this);
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
exports.IdentifierContext = IdentifierContext;
|
|
1611
|
-
class ArrayValueContext extends antlr4_1.ParserRuleContext {
|
|
1612
|
-
constructor(parser, parent, invokingState) {
|
|
1613
|
-
super(parent, invokingState);
|
|
1614
|
-
this.parser = parser;
|
|
1615
|
-
}
|
|
1616
|
-
value_list() {
|
|
1617
|
-
return this.getTypedRuleContexts(ValueContext);
|
|
1618
|
-
}
|
|
1619
|
-
value(i) {
|
|
1620
|
-
return this.getTypedRuleContext(ValueContext, i);
|
|
1621
|
-
}
|
|
1622
|
-
get ruleIndex() {
|
|
1623
|
-
return OpraFilterParser.RULE_arrayValue;
|
|
1624
|
-
}
|
|
1625
|
-
enterRule(listener) {
|
|
1626
|
-
if (listener.enterArrayValue) {
|
|
1627
|
-
listener.enterArrayValue(this);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
exitRule(listener) {
|
|
1631
|
-
if (listener.exitArrayValue) {
|
|
1632
|
-
listener.exitArrayValue(this);
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
// @Override
|
|
1636
|
-
accept(visitor) {
|
|
1637
|
-
if (visitor.visitArrayValue) {
|
|
1638
|
-
return visitor.visitArrayValue(this);
|
|
1639
|
-
}
|
|
1640
|
-
else {
|
|
1641
|
-
return visitor.visitChildren(this);
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
exports.ArrayValueContext = ArrayValueContext;
|
|
1646
|
-
class BooleanContext extends antlr4_1.ParserRuleContext {
|
|
1647
|
-
constructor(parser, parent, invokingState) {
|
|
1648
|
-
super(parent, invokingState);
|
|
1649
|
-
this.parser = parser;
|
|
1650
|
-
}
|
|
1651
|
-
get ruleIndex() {
|
|
1652
|
-
return OpraFilterParser.RULE_boolean;
|
|
1653
|
-
}
|
|
1654
|
-
enterRule(listener) {
|
|
1655
|
-
if (listener.enterBoolean) {
|
|
1656
|
-
listener.enterBoolean(this);
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
exitRule(listener) {
|
|
1660
|
-
if (listener.exitBoolean) {
|
|
1661
|
-
listener.exitBoolean(this);
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
// @Override
|
|
1665
|
-
accept(visitor) {
|
|
1666
|
-
if (visitor.visitBoolean) {
|
|
1667
|
-
return visitor.visitBoolean(this);
|
|
1668
|
-
}
|
|
1669
|
-
else {
|
|
1670
|
-
return visitor.visitChildren(this);
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
exports.BooleanContext = BooleanContext;
|
|
1675
|
-
class NullContext extends antlr4_1.ParserRuleContext {
|
|
1676
|
-
constructor(parser, parent, invokingState) {
|
|
1677
|
-
super(parent, invokingState);
|
|
1678
|
-
this.parser = parser;
|
|
1679
|
-
}
|
|
1680
|
-
get ruleIndex() {
|
|
1681
|
-
return OpraFilterParser.RULE_null;
|
|
1682
|
-
}
|
|
1683
|
-
enterRule(listener) {
|
|
1684
|
-
if (listener.enterNull) {
|
|
1685
|
-
listener.enterNull(this);
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
exitRule(listener) {
|
|
1689
|
-
if (listener.exitNull) {
|
|
1690
|
-
listener.exitNull(this);
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
// @Override
|
|
1694
|
-
accept(visitor) {
|
|
1695
|
-
if (visitor.visitNull) {
|
|
1696
|
-
return visitor.visitNull(this);
|
|
1697
|
-
}
|
|
1698
|
-
else {
|
|
1699
|
-
return visitor.visitChildren(this);
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
exports.NullContext = NullContext;
|
|
1704
|
-
class InfinityContext extends antlr4_1.ParserRuleContext {
|
|
1705
|
-
constructor(parser, parent, invokingState) {
|
|
1706
|
-
super(parent, invokingState);
|
|
1707
|
-
this.parser = parser;
|
|
1708
|
-
}
|
|
1709
|
-
get ruleIndex() {
|
|
1710
|
-
return OpraFilterParser.RULE_infinity;
|
|
1711
|
-
}
|
|
1712
|
-
enterRule(listener) {
|
|
1713
|
-
if (listener.enterInfinity) {
|
|
1714
|
-
listener.enterInfinity(this);
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
exitRule(listener) {
|
|
1718
|
-
if (listener.exitInfinity) {
|
|
1719
|
-
listener.exitInfinity(this);
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
// @Override
|
|
1723
|
-
accept(visitor) {
|
|
1724
|
-
if (visitor.visitInfinity) {
|
|
1725
|
-
return visitor.visitInfinity(this);
|
|
1726
|
-
}
|
|
1727
|
-
else {
|
|
1728
|
-
return visitor.visitChildren(this);
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
exports.InfinityContext = InfinityContext;
|
|
1733
|
-
class ArithmeticOperatorContext extends antlr4_1.ParserRuleContext {
|
|
1734
|
-
constructor(parser, parent, invokingState) {
|
|
1735
|
-
super(parent, invokingState);
|
|
1736
|
-
this.parser = parser;
|
|
1737
|
-
}
|
|
1738
|
-
get ruleIndex() {
|
|
1739
|
-
return OpraFilterParser.RULE_arithmeticOperator;
|
|
1740
|
-
}
|
|
1741
|
-
enterRule(listener) {
|
|
1742
|
-
if (listener.enterArithmeticOperator) {
|
|
1743
|
-
listener.enterArithmeticOperator(this);
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
exitRule(listener) {
|
|
1747
|
-
if (listener.exitArithmeticOperator) {
|
|
1748
|
-
listener.exitArithmeticOperator(this);
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
// @Override
|
|
1752
|
-
accept(visitor) {
|
|
1753
|
-
if (visitor.visitArithmeticOperator) {
|
|
1754
|
-
return visitor.visitArithmeticOperator(this);
|
|
1755
|
-
}
|
|
1756
|
-
else {
|
|
1757
|
-
return visitor.visitChildren(this);
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
exports.ArithmeticOperatorContext = ArithmeticOperatorContext;
|
|
1762
|
-
class ComparisonOperatorContext extends antlr4_1.ParserRuleContext {
|
|
1763
|
-
constructor(parser, parent, invokingState) {
|
|
1764
|
-
super(parent, invokingState);
|
|
1765
|
-
this.parser = parser;
|
|
1766
|
-
}
|
|
1767
|
-
get ruleIndex() {
|
|
1768
|
-
return OpraFilterParser.RULE_comparisonOperator;
|
|
1769
|
-
}
|
|
1770
|
-
enterRule(listener) {
|
|
1771
|
-
if (listener.enterComparisonOperator) {
|
|
1772
|
-
listener.enterComparisonOperator(this);
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
exitRule(listener) {
|
|
1776
|
-
if (listener.exitComparisonOperator) {
|
|
1777
|
-
listener.exitComparisonOperator(this);
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
// @Override
|
|
1781
|
-
accept(visitor) {
|
|
1782
|
-
if (visitor.visitComparisonOperator) {
|
|
1783
|
-
return visitor.visitComparisonOperator(this);
|
|
1784
|
-
}
|
|
1785
|
-
else {
|
|
1786
|
-
return visitor.visitChildren(this);
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
exports.ComparisonOperatorContext = ComparisonOperatorContext;
|
|
1791
|
-
class LogicalOperatorContext extends antlr4_1.ParserRuleContext {
|
|
1792
|
-
constructor(parser, parent, invokingState) {
|
|
1793
|
-
super(parent, invokingState);
|
|
1794
|
-
this.parser = parser;
|
|
1795
|
-
}
|
|
1796
|
-
get ruleIndex() {
|
|
1797
|
-
return OpraFilterParser.RULE_logicalOperator;
|
|
1798
|
-
}
|
|
1799
|
-
enterRule(listener) {
|
|
1800
|
-
if (listener.enterLogicalOperator) {
|
|
1801
|
-
listener.enterLogicalOperator(this);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
exitRule(listener) {
|
|
1805
|
-
if (listener.exitLogicalOperator) {
|
|
1806
|
-
listener.exitLogicalOperator(this);
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
// @Override
|
|
1810
|
-
accept(visitor) {
|
|
1811
|
-
if (visitor.visitLogicalOperator) {
|
|
1812
|
-
return visitor.visitLogicalOperator(this);
|
|
1813
|
-
}
|
|
1814
|
-
else {
|
|
1815
|
-
return visitor.visitChildren(this);
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
}
|
|
1819
|
-
exports.LogicalOperatorContext = LogicalOperatorContext;
|
|
1820
|
-
class PolarityOperatorContext extends antlr4_1.ParserRuleContext {
|
|
1821
|
-
constructor(parser, parent, invokingState) {
|
|
1822
|
-
super(parent, invokingState);
|
|
1823
|
-
this.parser = parser;
|
|
1824
|
-
}
|
|
1825
|
-
POLAR_OP() {
|
|
1826
|
-
return this.getToken(OpraFilterParser.POLAR_OP, 0);
|
|
1827
|
-
}
|
|
1828
|
-
get ruleIndex() {
|
|
1829
|
-
return OpraFilterParser.RULE_polarityOperator;
|
|
1830
|
-
}
|
|
1831
|
-
enterRule(listener) {
|
|
1832
|
-
if (listener.enterPolarityOperator) {
|
|
1833
|
-
listener.enterPolarityOperator(this);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
exitRule(listener) {
|
|
1837
|
-
if (listener.exitPolarityOperator) {
|
|
1838
|
-
listener.exitPolarityOperator(this);
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
// @Override
|
|
1842
|
-
accept(visitor) {
|
|
1843
|
-
if (visitor.visitPolarityOperator) {
|
|
1844
|
-
return visitor.visitPolarityOperator(this);
|
|
1845
|
-
}
|
|
1846
|
-
else {
|
|
1847
|
-
return visitor.visitChildren(this);
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
exports.PolarityOperatorContext = PolarityOperatorContext;
|