@opra/client 0.7.0 → 0.8.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 +1 -1
- package/cjs/714.min.cjs +1 -0
- package/cjs/antlr4ts.min.cjs +2 -0
- package/cjs/antlr4ts.min.cjs.LICENSE.txt +4 -0
- package/cjs/main.min.cjs +1 -0
- package/cjs/opra-common.min.cjs +1 -0
- package/cjs/vendors.min.cjs +2 -0
- package/cjs/vendors.min.cjs.LICENSE.txt +52 -0
- package/esm/714.min.mjs +1 -0
- package/esm/antlr4ts.min.mjs +2 -0
- package/esm/antlr4ts.min.mjs.LICENSE.txt +4 -0
- package/esm/main.min.mjs +1 -0
- package/esm/opra-common.min.mjs +1 -0
- package/esm/vendors.min.mjs +2 -0
- package/esm/vendors.min.mjs.LICENSE.txt +52 -0
- package/package.json +22 -50
- package/{esm → typings}/client-error.d.ts +1 -1
- package/typings/common/constants.d.ts +0 -0
- package/typings/common/exception/enums/issue-severity.enum.d.ts +13 -0
- package/typings/common/exception/error-issue.d.ts +9 -0
- package/typings/common/exception/http-errors/bad-request.error.d.ts +10 -0
- package/typings/common/exception/http-errors/failed-dependency.error.d.ts +9 -0
- package/typings/common/exception/http-errors/forbidden.error.d.ts +11 -0
- package/typings/common/exception/http-errors/internal-server.error.d.ts +9 -0
- package/typings/common/exception/http-errors/method-not-allowed.error.d.ts +10 -0
- package/typings/common/exception/http-errors/not-acceptable.error.d.ts +10 -0
- package/typings/common/exception/http-errors/not-found.error.d.ts +13 -0
- package/typings/common/exception/http-errors/unauthorized.error.d.ts +10 -0
- package/typings/common/exception/http-errors/unprocessable-entity.error.d.ts +9 -0
- package/typings/common/exception/index.d.ts +15 -0
- package/typings/common/exception/opra-exception.d.ts +15 -0
- package/typings/common/exception/resource-errors/resource-conflict.error.d.ts +5 -0
- package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +4 -0
- package/typings/common/exception/wrap-exception.d.ts +2 -0
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +78 -0
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +365 -0
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +290 -0
- package/typings/common/filter/ast/abstract/ast.d.ts +5 -0
- package/typings/common/filter/ast/abstract/expression.d.ts +3 -0
- package/typings/common/filter/ast/abstract/literal.d.ts +6 -0
- package/typings/common/filter/ast/abstract/term.d.ts +3 -0
- package/typings/common/filter/ast/expressions/arithmetic-expression.d.ts +13 -0
- package/typings/common/filter/ast/expressions/array-expression.d.ts +7 -0
- package/typings/common/filter/ast/expressions/comparison-expression.d.ts +10 -0
- package/typings/common/filter/ast/expressions/logical-expression.d.ts +8 -0
- package/typings/common/filter/ast/expressions/parentheses-expression.d.ts +6 -0
- package/typings/common/filter/ast/index.d.ts +16 -0
- package/typings/common/filter/ast/terms/boolean-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/date-literal.d.ts +6 -0
- package/typings/common/filter/ast/terms/external-constant.d.ts +5 -0
- package/typings/common/filter/ast/terms/null-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/number-literal.d.ts +6 -0
- package/typings/common/filter/ast/terms/qualified-identifier.d.ts +4 -0
- package/typings/common/filter/ast/terms/string-literal.d.ts +5 -0
- package/typings/common/filter/ast/terms/time-literal.d.ts +6 -0
- package/typings/common/filter/build.d.ts +31 -0
- package/typings/common/filter/error-listener.d.ts +8 -0
- package/typings/common/filter/errors.d.ts +20 -0
- package/typings/common/filter/filter-tree-visitor.d.ts +30 -0
- package/typings/common/filter/index.d.ts +5 -0
- package/typings/common/filter/parse.d.ts +2 -0
- package/typings/common/filter/utils.d.ts +2 -0
- package/typings/common/helpers/index.d.ts +1 -0
- package/typings/common/helpers/responsive-map.d.ts +18 -0
- package/typings/common/http/enums/http-headers.enum.d.ts +379 -0
- package/typings/common/http/enums/http-status.enum.d.ts +290 -0
- package/typings/common/http/http-request.d.ts +34 -0
- package/typings/common/http/index.d.ts +6 -0
- package/typings/common/http/interfaces/client-http-headers.interface.d.ts +65 -0
- package/typings/common/http/interfaces/server-http-headers.interface.d.ts +1 -0
- package/typings/common/http/multipart/batch-multipart.d.ts +31 -0
- package/typings/common/http/multipart/http-request-content.d.ts +8 -0
- package/typings/common/http/multipart/http-response-content.d.ts +7 -0
- package/typings/common/http/multipart/index.d.ts +1 -0
- package/typings/common/http/utils/normalize-headers.d.ts +1 -0
- package/typings/common/i18n/i18n.d.ts +28 -0
- package/typings/common/i18n/index.d.ts +5 -0
- package/typings/common/i18n/string-utils.d.ts +2 -0
- package/typings/common/i18n/translate.d.ts +4 -0
- package/typings/common/index.d.ts +10 -0
- package/typings/common/schema/constants.d.ts +8 -0
- package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +8 -0
- package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +6 -0
- package/typings/common/schema/decorators/opr-field.decorator.d.ts +3 -0
- package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +8 -0
- package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +6 -0
- package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +8 -0
- package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +2 -0
- package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +4 -0
- package/typings/common/schema/implementation/data-type/complex-type.d.ts +29 -0
- package/typings/common/schema/implementation/data-type/data-type.d.ts +16 -0
- package/typings/common/schema/implementation/data-type/simple-type.d.ts +12 -0
- package/typings/common/schema/implementation/data-type/union-type.d.ts +16 -0
- package/typings/common/schema/implementation/document-builder.d.ts +16 -0
- package/typings/common/schema/implementation/opra-document.d.ts +44 -0
- package/typings/common/schema/implementation/query/collection-count-query.d.ts +14 -0
- package/typings/common/schema/implementation/query/collection-create-query.d.ts +18 -0
- package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +14 -0
- package/typings/common/schema/implementation/query/collection-delete-query.d.ts +10 -0
- package/typings/common/schema/implementation/query/collection-get-query.d.ts +21 -0
- package/typings/common/schema/implementation/query/collection-search-query.d.ts +30 -0
- package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +15 -0
- package/typings/common/schema/implementation/query/collection-update-query.d.ts +19 -0
- package/typings/common/schema/implementation/query/field-get-query.d.ts +30 -0
- package/typings/common/schema/implementation/query/index.d.ts +27 -0
- package/typings/common/schema/implementation/query/singleton-get-query.d.ts +20 -0
- package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +19 -0
- package/typings/common/schema/implementation/resource/container-resource-info.d.ts +13 -0
- package/typings/common/schema/implementation/resource/resource-info.d.ts +17 -0
- package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +14 -0
- package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +3 -0
- package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +4 -0
- package/typings/common/schema/index.d.ts +25 -0
- package/typings/common/schema/interfaces/child-field-query.interface.d.ts +4 -0
- package/typings/common/schema/interfaces/data-type.metadata.d.ts +18 -0
- package/typings/common/schema/interfaces/resource-container.interface.d.ts +8 -0
- package/typings/common/schema/interfaces/resource.metadata.d.ts +18 -0
- package/typings/common/schema/opra-schema.definition.d.ts +178 -0
- package/typings/common/schema/type-helpers/extend-type.helper.d.ts +3 -0
- package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +2 -0
- package/typings/common/schema/type-helpers/mixin.utils.d.ts +3 -0
- package/typings/common/schema/types.d.ts +14 -0
- package/typings/common/schema/utils/class.utils.d.ts +2 -0
- package/typings/common/schema/utils/clone-object.util.d.ts +1 -0
- package/typings/common/schema/utils/inspect.util.d.ts +4 -0
- package/typings/common/schema/utils/normalize-field-array.util.d.ts +3 -0
- package/typings/common/schema/utils/path-to-tree.util.d.ts +4 -0
- package/typings/common/schema/utils/string-compare.util.d.ts +1 -0
- package/typings/common/url/formats/boolean-format.d.ts +5 -0
- package/typings/common/url/formats/date-format.d.ts +16 -0
- package/typings/common/url/formats/filter-format.d.ts +6 -0
- package/typings/common/url/formats/format.d.ts +4 -0
- package/typings/common/url/formats/integer-format.d.ts +9 -0
- package/typings/common/url/formats/number-format.d.ts +12 -0
- package/typings/common/url/formats/string-format.d.ts +14 -0
- package/typings/common/url/index.d.ts +5 -0
- package/typings/common/url/opra-url-path-component.d.ts +15 -0
- package/typings/common/url/opra-url-path.d.ts +30 -0
- package/typings/common/url/opra-url-search-params.d.ts +44 -0
- package/typings/common/url/opra-url.d.ts +79 -0
- package/typings/common/url/utils/path-utils.d.ts +8 -0
- package/typings/common/utils/index.d.ts +3 -0
- package/typings/common/utils/is-url.d.ts +1 -0
- package/typings/common/utils/path-to-tree.d.ts +4 -0
- package/typings/common/utils/type-guards.d.ts +9 -0
- package/{esm → typings}/constants.d.ts +0 -0
- package/{esm → typings}/http/http-client.d.ts +1 -1
- package/{esm → typings}/http/http-collection-service.d.ts +1 -1
- package/{esm → typings}/http/http-request.d.ts +1 -1
- package/{esm → typings}/http/http-response.d.ts +0 -0
- package/{esm → typings}/http/http-singleton-service.d.ts +1 -1
- package/{esm → typings}/http/http-types.d.ts +1 -1
- package/{esm → typings}/http/requests/batch-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-create-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-delete-many-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-delete-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-get-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-search-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-update-many-request.d.ts +1 -1
- package/{esm → typings}/http/requests/collection-update-request.d.ts +1 -1
- package/{esm → typings}/http/requests/http-singleton-get-request.d.ts +1 -1
- package/{esm → typings}/http/utils/merge-raw-http-requests.util.d.ts +0 -0
- package/{esm → typings}/index.d.ts +0 -1
- package/{esm → typings}/interfaces/http-options.interface.d.ts +1 -4
- package/{esm → typings}/interfaces/http-request-config.interface.d.ts +1 -1
- package/umd/714.min.cjs +1 -0
- package/umd/antlr4ts.min.cjs +2 -0
- package/umd/antlr4ts.min.cjs.LICENSE.txt +4 -0
- package/umd/main.min.cjs +1 -0
- package/umd/opra-common.min.cjs +1 -0
- package/umd/vendors.min.cjs +2 -0
- package/umd/vendors.min.cjs.LICENSE.txt +52 -0
- package/cjs/client-error.js +0 -20
- package/cjs/constants.js +0 -6
- package/cjs/http/http-client.js +0 -164
- package/cjs/http/http-collection-service.js +0 -40
- package/cjs/http/http-request.js +0 -66
- package/cjs/http/http-response.js +0 -2
- package/cjs/http/http-singleton-service.js +0 -16
- package/cjs/http/http-types.js +0 -2
- package/cjs/http/requests/batch-request.js +0 -80
- package/cjs/http/requests/collection-create-request.js +0 -35
- package/cjs/http/requests/collection-delete-many-request.js +0 -28
- package/cjs/http/requests/collection-delete-request.js +0 -29
- package/cjs/http/requests/collection-get-request.js +0 -37
- package/cjs/http/requests/collection-search-request.js +0 -44
- package/cjs/http/requests/collection-update-many-request.js +0 -31
- package/cjs/http/requests/collection-update-request.js +0 -40
- package/cjs/http/requests/http-singleton-get-request.js +0 -31
- package/cjs/http/utils/merge-raw-http-requests.util.js +0 -29
- package/cjs/index.js +0 -20
- package/cjs/interfaces/http-options.interface.js +0 -2
- package/cjs/interfaces/http-request-config.interface.js +0 -2
- package/cjs/package.json +0 -3
- package/cjs/types.js +0 -2
- package/esm/client-error.js +0 -16
- package/esm/constants.js +0 -3
- package/esm/http/http-client.js +0 -160
- package/esm/http/http-collection-service.js +0 -36
- package/esm/http/http-request.js +0 -62
- package/esm/http/http-response.js +0 -1
- package/esm/http/http-singleton-service.js +0 -12
- package/esm/http/http-types.js +0 -1
- package/esm/http/requests/batch-request.js +0 -76
- package/esm/http/requests/collection-create-request.js +0 -31
- package/esm/http/requests/collection-delete-many-request.js +0 -24
- package/esm/http/requests/collection-delete-request.js +0 -25
- package/esm/http/requests/collection-get-request.js +0 -33
- package/esm/http/requests/collection-search-request.js +0 -40
- package/esm/http/requests/collection-update-many-request.js +0 -27
- package/esm/http/requests/collection-update-request.js +0 -36
- package/esm/http/requests/http-singleton-get-request.js +0 -27
- package/esm/http/utils/merge-raw-http-requests.util.js +0 -25
- package/esm/index.js +0 -17
- package/esm/interfaces/http-options.interface.js +0 -1
- package/esm/interfaces/http-request-config.interface.js +0 -1
- package/esm/types.d.ts +0 -7
- package/esm/types.js +0 -1
- package/umd/opra-client.umd.min.js +0 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { ATN } from "antlr4ts/atn/ATN";
|
|
2
|
+
import { FailedPredicateException } from "antlr4ts/FailedPredicateException";
|
|
3
|
+
import { Parser } from "antlr4ts/Parser";
|
|
4
|
+
import { ParserRuleContext } from "antlr4ts/ParserRuleContext";
|
|
5
|
+
import { RuleContext } from "antlr4ts/RuleContext";
|
|
6
|
+
import { TerminalNode } from "antlr4ts/tree/TerminalNode";
|
|
7
|
+
import { TokenStream } from "antlr4ts/TokenStream";
|
|
8
|
+
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
9
|
+
import type { OpraFilterVisitor } from "../antlr/OpraFilterVisitor.js";
|
|
10
|
+
export declare class OpraFilterParser extends Parser {
|
|
11
|
+
static readonly T__0 = 1;
|
|
12
|
+
static readonly T__1 = 2;
|
|
13
|
+
static readonly T__2 = 3;
|
|
14
|
+
static readonly T__3 = 4;
|
|
15
|
+
static readonly T__4 = 5;
|
|
16
|
+
static readonly T__5 = 6;
|
|
17
|
+
static readonly T__6 = 7;
|
|
18
|
+
static readonly T__7 = 8;
|
|
19
|
+
static readonly T__8 = 9;
|
|
20
|
+
static readonly T__9 = 10;
|
|
21
|
+
static readonly T__10 = 11;
|
|
22
|
+
static readonly T__11 = 12;
|
|
23
|
+
static readonly T__12 = 13;
|
|
24
|
+
static readonly T__13 = 14;
|
|
25
|
+
static readonly T__14 = 15;
|
|
26
|
+
static readonly T__15 = 16;
|
|
27
|
+
static readonly T__16 = 17;
|
|
28
|
+
static readonly T__17 = 18;
|
|
29
|
+
static readonly T__18 = 19;
|
|
30
|
+
static readonly T__19 = 20;
|
|
31
|
+
static readonly T__20 = 21;
|
|
32
|
+
static readonly T__21 = 22;
|
|
33
|
+
static readonly T__22 = 23;
|
|
34
|
+
static readonly T__23 = 24;
|
|
35
|
+
static readonly T__24 = 25;
|
|
36
|
+
static readonly T__25 = 26;
|
|
37
|
+
static readonly T__26 = 27;
|
|
38
|
+
static readonly T__27 = 28;
|
|
39
|
+
static readonly T__28 = 29;
|
|
40
|
+
static readonly T__29 = 30;
|
|
41
|
+
static readonly T__30 = 31;
|
|
42
|
+
static readonly T__31 = 32;
|
|
43
|
+
static readonly T__32 = 33;
|
|
44
|
+
static readonly T__33 = 34;
|
|
45
|
+
static readonly T__34 = 35;
|
|
46
|
+
static readonly T__35 = 36;
|
|
47
|
+
static readonly T__36 = 37;
|
|
48
|
+
static readonly T__37 = 38;
|
|
49
|
+
static readonly T__38 = 39;
|
|
50
|
+
static readonly T__39 = 40;
|
|
51
|
+
static readonly T__40 = 41;
|
|
52
|
+
static readonly T__41 = 42;
|
|
53
|
+
static readonly T__42 = 43;
|
|
54
|
+
static readonly T__43 = 44;
|
|
55
|
+
static readonly T__44 = 45;
|
|
56
|
+
static readonly T__45 = 46;
|
|
57
|
+
static readonly DATE = 47;
|
|
58
|
+
static readonly DATETIME = 48;
|
|
59
|
+
static readonly TIME = 49;
|
|
60
|
+
static readonly IDENTIFIER = 50;
|
|
61
|
+
static readonly STRING = 51;
|
|
62
|
+
static readonly NUMBER = 52;
|
|
63
|
+
static readonly INTEGER = 53;
|
|
64
|
+
static readonly WHITESPACE = 54;
|
|
65
|
+
static readonly COMMENT = 55;
|
|
66
|
+
static readonly LINE_COMMENT = 56;
|
|
67
|
+
static readonly RULE_root = 0;
|
|
68
|
+
static readonly RULE_expression = 1;
|
|
69
|
+
static readonly RULE_term = 2;
|
|
70
|
+
static readonly RULE_invocable = 3;
|
|
71
|
+
static readonly RULE_invocation = 4;
|
|
72
|
+
static readonly RULE_indexer = 5;
|
|
73
|
+
static readonly RULE_function = 6;
|
|
74
|
+
static readonly RULE_paramList = 7;
|
|
75
|
+
static readonly RULE_unit = 8;
|
|
76
|
+
static readonly RULE_dateTimePrecision = 9;
|
|
77
|
+
static readonly RULE_pluralDateTimePrecision = 10;
|
|
78
|
+
static readonly RULE_qualifiedIdentifier = 11;
|
|
79
|
+
static readonly RULE_externalConstant = 12;
|
|
80
|
+
static readonly RULE_identifier = 13;
|
|
81
|
+
static readonly RULE_literal = 14;
|
|
82
|
+
static readonly RULE_compOp = 15;
|
|
83
|
+
static readonly RULE_arthOp = 16;
|
|
84
|
+
static readonly RULE_polarOp = 17;
|
|
85
|
+
static readonly RULE_logOp = 18;
|
|
86
|
+
static readonly RULE_boolean = 19;
|
|
87
|
+
static readonly RULE_null = 20;
|
|
88
|
+
static readonly RULE_infinity = 21;
|
|
89
|
+
static readonly ruleNames: string[];
|
|
90
|
+
private static readonly _LITERAL_NAMES;
|
|
91
|
+
private static readonly _SYMBOLIC_NAMES;
|
|
92
|
+
static readonly VOCABULARY: Vocabulary;
|
|
93
|
+
get vocabulary(): Vocabulary;
|
|
94
|
+
get grammarFileName(): string;
|
|
95
|
+
get ruleNames(): string[];
|
|
96
|
+
get serializedATN(): string;
|
|
97
|
+
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
|
|
98
|
+
constructor(input: TokenStream);
|
|
99
|
+
root(): RootContext;
|
|
100
|
+
expression(): ExpressionContext;
|
|
101
|
+
expression(_p: number): ExpressionContext;
|
|
102
|
+
term(): TermContext;
|
|
103
|
+
invocable(): InvocableContext;
|
|
104
|
+
invocation(): InvocationContext;
|
|
105
|
+
indexer(): IndexerContext;
|
|
106
|
+
function(): FunctionContext;
|
|
107
|
+
paramList(): ParamListContext;
|
|
108
|
+
unit(): UnitContext;
|
|
109
|
+
dateTimePrecision(): DateTimePrecisionContext;
|
|
110
|
+
pluralDateTimePrecision(): PluralDateTimePrecisionContext;
|
|
111
|
+
qualifiedIdentifier(): QualifiedIdentifierContext;
|
|
112
|
+
externalConstant(): ExternalConstantContext;
|
|
113
|
+
identifier(): IdentifierContext;
|
|
114
|
+
literal(): LiteralContext;
|
|
115
|
+
compOp(): CompOpContext;
|
|
116
|
+
arthOp(): ArthOpContext;
|
|
117
|
+
polarOp(): PolarOpContext;
|
|
118
|
+
logOp(): LogOpContext;
|
|
119
|
+
boolean(): BooleanContext;
|
|
120
|
+
null(): NullContext;
|
|
121
|
+
infinity(): InfinityContext;
|
|
122
|
+
sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
|
|
123
|
+
private expression_sempred;
|
|
124
|
+
static readonly _serializedATN: string;
|
|
125
|
+
static __ATN: ATN;
|
|
126
|
+
static get _ATN(): ATN;
|
|
127
|
+
}
|
|
128
|
+
export declare class RootContext extends ParserRuleContext {
|
|
129
|
+
expression(): ExpressionContext;
|
|
130
|
+
EOF(): TerminalNode;
|
|
131
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
132
|
+
get ruleIndex(): number;
|
|
133
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
134
|
+
}
|
|
135
|
+
export declare class ExpressionContext extends ParserRuleContext {
|
|
136
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
137
|
+
get ruleIndex(): number;
|
|
138
|
+
copyFrom(ctx: ExpressionContext): void;
|
|
139
|
+
}
|
|
140
|
+
export declare class TermExpressionContext extends ExpressionContext {
|
|
141
|
+
term(): TermContext;
|
|
142
|
+
constructor(ctx: ExpressionContext);
|
|
143
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
144
|
+
}
|
|
145
|
+
export declare class PolarityExpressionContext extends ExpressionContext {
|
|
146
|
+
polarOp(): PolarOpContext;
|
|
147
|
+
expression(): ExpressionContext;
|
|
148
|
+
constructor(ctx: ExpressionContext);
|
|
149
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
150
|
+
}
|
|
151
|
+
export declare class ArithmeticExpressionContext extends ExpressionContext {
|
|
152
|
+
expression(): ExpressionContext[];
|
|
153
|
+
expression(i: number): ExpressionContext;
|
|
154
|
+
arthOp(): ArthOpContext;
|
|
155
|
+
constructor(ctx: ExpressionContext);
|
|
156
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
157
|
+
}
|
|
158
|
+
export declare class ComparisonExpressionContext extends ExpressionContext {
|
|
159
|
+
expression(): ExpressionContext[];
|
|
160
|
+
expression(i: number): ExpressionContext;
|
|
161
|
+
compOp(): CompOpContext;
|
|
162
|
+
constructor(ctx: ExpressionContext);
|
|
163
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
164
|
+
}
|
|
165
|
+
export declare class LogicalExpressionContext extends ExpressionContext {
|
|
166
|
+
expression(): ExpressionContext[];
|
|
167
|
+
expression(i: number): ExpressionContext;
|
|
168
|
+
logOp(): LogOpContext;
|
|
169
|
+
constructor(ctx: ExpressionContext);
|
|
170
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
171
|
+
}
|
|
172
|
+
export declare class ParenthesizedExpressionContext extends ExpressionContext {
|
|
173
|
+
expression(): ExpressionContext;
|
|
174
|
+
constructor(ctx: ExpressionContext);
|
|
175
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
176
|
+
}
|
|
177
|
+
export declare class ArrayExpressionContext extends ExpressionContext {
|
|
178
|
+
expression(): ExpressionContext[];
|
|
179
|
+
expression(i: number): ExpressionContext;
|
|
180
|
+
constructor(ctx: ExpressionContext);
|
|
181
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
182
|
+
}
|
|
183
|
+
export declare class TermContext extends ParserRuleContext {
|
|
184
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
185
|
+
get ruleIndex(): number;
|
|
186
|
+
copyFrom(ctx: TermContext): void;
|
|
187
|
+
}
|
|
188
|
+
export declare class LiteralTermContext extends TermContext {
|
|
189
|
+
literal(): LiteralContext;
|
|
190
|
+
constructor(ctx: TermContext);
|
|
191
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
192
|
+
}
|
|
193
|
+
export declare class QualifiedIdentifierTermContext extends TermContext {
|
|
194
|
+
qualifiedIdentifier(): QualifiedIdentifierContext;
|
|
195
|
+
constructor(ctx: TermContext);
|
|
196
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
197
|
+
}
|
|
198
|
+
export declare class ExternalConstantTermContext extends TermContext {
|
|
199
|
+
externalConstant(): ExternalConstantContext;
|
|
200
|
+
constructor(ctx: TermContext);
|
|
201
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
202
|
+
}
|
|
203
|
+
export declare class InvocableContext extends ParserRuleContext {
|
|
204
|
+
function(): FunctionContext;
|
|
205
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
206
|
+
get ruleIndex(): number;
|
|
207
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
208
|
+
}
|
|
209
|
+
export declare class InvocationContext extends ParserRuleContext {
|
|
210
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
211
|
+
get ruleIndex(): number;
|
|
212
|
+
copyFrom(ctx: InvocationContext): void;
|
|
213
|
+
}
|
|
214
|
+
export declare class MemberInvocationContext extends InvocationContext {
|
|
215
|
+
identifier(): IdentifierContext;
|
|
216
|
+
constructor(ctx: InvocationContext);
|
|
217
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
218
|
+
}
|
|
219
|
+
export declare class IndexerContext extends ParserRuleContext {
|
|
220
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
221
|
+
get ruleIndex(): number;
|
|
222
|
+
copyFrom(ctx: IndexerContext): void;
|
|
223
|
+
}
|
|
224
|
+
export declare class MemberIndexContext extends IndexerContext {
|
|
225
|
+
identifier(): IdentifierContext;
|
|
226
|
+
constructor(ctx: IndexerContext);
|
|
227
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
228
|
+
}
|
|
229
|
+
export declare class NumberIndexContext extends IndexerContext {
|
|
230
|
+
INTEGER(): TerminalNode;
|
|
231
|
+
constructor(ctx: IndexerContext);
|
|
232
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
233
|
+
}
|
|
234
|
+
export declare class FunctionContext extends ParserRuleContext {
|
|
235
|
+
identifier(): IdentifierContext;
|
|
236
|
+
paramList(): ParamListContext | undefined;
|
|
237
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
238
|
+
get ruleIndex(): number;
|
|
239
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
240
|
+
}
|
|
241
|
+
export declare class ParamListContext extends ParserRuleContext {
|
|
242
|
+
expression(): ExpressionContext[];
|
|
243
|
+
expression(i: number): ExpressionContext;
|
|
244
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
245
|
+
get ruleIndex(): number;
|
|
246
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
247
|
+
}
|
|
248
|
+
export declare class UnitContext extends ParserRuleContext {
|
|
249
|
+
dateTimePrecision(): DateTimePrecisionContext | undefined;
|
|
250
|
+
pluralDateTimePrecision(): PluralDateTimePrecisionContext | undefined;
|
|
251
|
+
STRING(): TerminalNode | undefined;
|
|
252
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
253
|
+
get ruleIndex(): number;
|
|
254
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
255
|
+
}
|
|
256
|
+
export declare class DateTimePrecisionContext extends ParserRuleContext {
|
|
257
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
258
|
+
get ruleIndex(): number;
|
|
259
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
260
|
+
}
|
|
261
|
+
export declare class PluralDateTimePrecisionContext extends ParserRuleContext {
|
|
262
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
263
|
+
get ruleIndex(): number;
|
|
264
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
265
|
+
}
|
|
266
|
+
export declare class QualifiedIdentifierContext extends ParserRuleContext {
|
|
267
|
+
identifier(): IdentifierContext[];
|
|
268
|
+
identifier(i: number): IdentifierContext;
|
|
269
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
270
|
+
get ruleIndex(): number;
|
|
271
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
272
|
+
}
|
|
273
|
+
export declare class ExternalConstantContext extends ParserRuleContext {
|
|
274
|
+
IDENTIFIER(): TerminalNode | undefined;
|
|
275
|
+
STRING(): TerminalNode | undefined;
|
|
276
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
277
|
+
get ruleIndex(): number;
|
|
278
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
279
|
+
}
|
|
280
|
+
export declare class IdentifierContext extends ParserRuleContext {
|
|
281
|
+
IDENTIFIER(): TerminalNode;
|
|
282
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
283
|
+
get ruleIndex(): number;
|
|
284
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
285
|
+
}
|
|
286
|
+
export declare class LiteralContext extends ParserRuleContext {
|
|
287
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
288
|
+
get ruleIndex(): number;
|
|
289
|
+
copyFrom(ctx: LiteralContext): void;
|
|
290
|
+
}
|
|
291
|
+
export declare class NumberLiteralContext extends LiteralContext {
|
|
292
|
+
NUMBER(): TerminalNode;
|
|
293
|
+
constructor(ctx: LiteralContext);
|
|
294
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
295
|
+
}
|
|
296
|
+
export declare class InfinityLiteralContext extends LiteralContext {
|
|
297
|
+
infinity(): InfinityContext;
|
|
298
|
+
constructor(ctx: LiteralContext);
|
|
299
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
300
|
+
}
|
|
301
|
+
export declare class BooleanLiteralContext extends LiteralContext {
|
|
302
|
+
boolean(): BooleanContext;
|
|
303
|
+
constructor(ctx: LiteralContext);
|
|
304
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
305
|
+
}
|
|
306
|
+
export declare class NullLiteralContext extends LiteralContext {
|
|
307
|
+
null(): NullContext;
|
|
308
|
+
constructor(ctx: LiteralContext);
|
|
309
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
310
|
+
}
|
|
311
|
+
export declare class DateLiteralContext extends LiteralContext {
|
|
312
|
+
DATE(): TerminalNode;
|
|
313
|
+
constructor(ctx: LiteralContext);
|
|
314
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
315
|
+
}
|
|
316
|
+
export declare class DateTimeLiteralContext extends LiteralContext {
|
|
317
|
+
DATETIME(): TerminalNode;
|
|
318
|
+
constructor(ctx: LiteralContext);
|
|
319
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
320
|
+
}
|
|
321
|
+
export declare class TimeLiteralContext extends LiteralContext {
|
|
322
|
+
TIME(): TerminalNode;
|
|
323
|
+
constructor(ctx: LiteralContext);
|
|
324
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
325
|
+
}
|
|
326
|
+
export declare class StringLiteralContext extends LiteralContext {
|
|
327
|
+
STRING(): TerminalNode;
|
|
328
|
+
constructor(ctx: LiteralContext);
|
|
329
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
330
|
+
}
|
|
331
|
+
export declare class CompOpContext extends ParserRuleContext {
|
|
332
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
333
|
+
get ruleIndex(): number;
|
|
334
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
335
|
+
}
|
|
336
|
+
export declare class ArthOpContext extends ParserRuleContext {
|
|
337
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
338
|
+
get ruleIndex(): number;
|
|
339
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
340
|
+
}
|
|
341
|
+
export declare class PolarOpContext extends ParserRuleContext {
|
|
342
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
343
|
+
get ruleIndex(): number;
|
|
344
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
345
|
+
}
|
|
346
|
+
export declare class LogOpContext extends ParserRuleContext {
|
|
347
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
348
|
+
get ruleIndex(): number;
|
|
349
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
350
|
+
}
|
|
351
|
+
export declare class BooleanContext extends ParserRuleContext {
|
|
352
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
353
|
+
get ruleIndex(): number;
|
|
354
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
355
|
+
}
|
|
356
|
+
export declare class NullContext extends ParserRuleContext {
|
|
357
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
358
|
+
get ruleIndex(): number;
|
|
359
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
360
|
+
}
|
|
361
|
+
export declare class InfinityContext extends ParserRuleContext {
|
|
362
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
363
|
+
get ruleIndex(): number;
|
|
364
|
+
accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
|
|
365
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
|
|
2
|
+
import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, BooleanContext, BooleanLiteralContext, ComparisonExpressionContext, CompOpContext, DateLiteralContext, DateTimeLiteralContext, DateTimePrecisionContext, ExpressionContext, ExternalConstantContext, ExternalConstantTermContext, FunctionContext, IdentifierContext, IndexerContext, InfinityContext, InfinityLiteralContext, InvocableContext, InvocationContext, LiteralContext, LiteralTermContext, LogicalExpressionContext, LogOpContext, MemberIndexContext, MemberInvocationContext, NullContext, NullLiteralContext, NumberIndexContext, NumberLiteralContext, ParamListContext, ParenthesizedExpressionContext, PluralDateTimePrecisionContext, PolarityExpressionContext, PolarOpContext, QualifiedIdentifierContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TermContext, TermExpressionContext, TimeLiteralContext, UnitContext } from "../antlr/OpraFilterParser.js";
|
|
3
|
+
/**
|
|
4
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
5
|
+
* by `OpraFilterParser`.
|
|
6
|
+
*
|
|
7
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
8
|
+
* operations with no return type.
|
|
9
|
+
*/
|
|
10
|
+
export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
11
|
+
/**
|
|
12
|
+
* Visit a parse tree produced by the `termExpression`
|
|
13
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
14
|
+
* @param ctx the parse tree
|
|
15
|
+
* @return the visitor result
|
|
16
|
+
*/
|
|
17
|
+
visitTermExpression?: (ctx: TermExpressionContext) => Result;
|
|
18
|
+
/**
|
|
19
|
+
* Visit a parse tree produced by the `polarityExpression`
|
|
20
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
21
|
+
* @param ctx the parse tree
|
|
22
|
+
* @return the visitor result
|
|
23
|
+
*/
|
|
24
|
+
visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
|
|
25
|
+
/**
|
|
26
|
+
* Visit a parse tree produced by the `arithmeticExpression`
|
|
27
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
28
|
+
* @param ctx the parse tree
|
|
29
|
+
* @return the visitor result
|
|
30
|
+
*/
|
|
31
|
+
visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
|
|
32
|
+
/**
|
|
33
|
+
* Visit a parse tree produced by the `comparisonExpression`
|
|
34
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
35
|
+
* @param ctx the parse tree
|
|
36
|
+
* @return the visitor result
|
|
37
|
+
*/
|
|
38
|
+
visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
|
|
39
|
+
/**
|
|
40
|
+
* Visit a parse tree produced by the `logicalExpression`
|
|
41
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
42
|
+
* @param ctx the parse tree
|
|
43
|
+
* @return the visitor result
|
|
44
|
+
*/
|
|
45
|
+
visitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;
|
|
46
|
+
/**
|
|
47
|
+
* Visit a parse tree produced by the `parenthesizedExpression`
|
|
48
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
49
|
+
* @param ctx the parse tree
|
|
50
|
+
* @return the visitor result
|
|
51
|
+
*/
|
|
52
|
+
visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
|
|
53
|
+
/**
|
|
54
|
+
* Visit a parse tree produced by the `arrayExpression`
|
|
55
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
56
|
+
* @param ctx the parse tree
|
|
57
|
+
* @return the visitor result
|
|
58
|
+
*/
|
|
59
|
+
visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
|
|
60
|
+
/**
|
|
61
|
+
* Visit a parse tree produced by the `memberIndex`
|
|
62
|
+
* labeled alternative in `OpraFilterParser.indexer`.
|
|
63
|
+
* @param ctx the parse tree
|
|
64
|
+
* @return the visitor result
|
|
65
|
+
*/
|
|
66
|
+
visitMemberIndex?: (ctx: MemberIndexContext) => Result;
|
|
67
|
+
/**
|
|
68
|
+
* Visit a parse tree produced by the `numberIndex`
|
|
69
|
+
* labeled alternative in `OpraFilterParser.indexer`.
|
|
70
|
+
* @param ctx the parse tree
|
|
71
|
+
* @return the visitor result
|
|
72
|
+
*/
|
|
73
|
+
visitNumberIndex?: (ctx: NumberIndexContext) => Result;
|
|
74
|
+
/**
|
|
75
|
+
* Visit a parse tree produced by the `numberLiteral`
|
|
76
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
77
|
+
* @param ctx the parse tree
|
|
78
|
+
* @return the visitor result
|
|
79
|
+
*/
|
|
80
|
+
visitNumberLiteral?: (ctx: NumberLiteralContext) => Result;
|
|
81
|
+
/**
|
|
82
|
+
* Visit a parse tree produced by the `infinityLiteral`
|
|
83
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
84
|
+
* @param ctx the parse tree
|
|
85
|
+
* @return the visitor result
|
|
86
|
+
*/
|
|
87
|
+
visitInfinityLiteral?: (ctx: InfinityLiteralContext) => Result;
|
|
88
|
+
/**
|
|
89
|
+
* Visit a parse tree produced by the `booleanLiteral`
|
|
90
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
91
|
+
* @param ctx the parse tree
|
|
92
|
+
* @return the visitor result
|
|
93
|
+
*/
|
|
94
|
+
visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
|
|
95
|
+
/**
|
|
96
|
+
* Visit a parse tree produced by the `nullLiteral`
|
|
97
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
98
|
+
* @param ctx the parse tree
|
|
99
|
+
* @return the visitor result
|
|
100
|
+
*/
|
|
101
|
+
visitNullLiteral?: (ctx: NullLiteralContext) => Result;
|
|
102
|
+
/**
|
|
103
|
+
* Visit a parse tree produced by the `dateLiteral`
|
|
104
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
105
|
+
* @param ctx the parse tree
|
|
106
|
+
* @return the visitor result
|
|
107
|
+
*/
|
|
108
|
+
visitDateLiteral?: (ctx: DateLiteralContext) => Result;
|
|
109
|
+
/**
|
|
110
|
+
* Visit a parse tree produced by the `dateTimeLiteral`
|
|
111
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
112
|
+
* @param ctx the parse tree
|
|
113
|
+
* @return the visitor result
|
|
114
|
+
*/
|
|
115
|
+
visitDateTimeLiteral?: (ctx: DateTimeLiteralContext) => Result;
|
|
116
|
+
/**
|
|
117
|
+
* Visit a parse tree produced by the `timeLiteral`
|
|
118
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
119
|
+
* @param ctx the parse tree
|
|
120
|
+
* @return the visitor result
|
|
121
|
+
*/
|
|
122
|
+
visitTimeLiteral?: (ctx: TimeLiteralContext) => Result;
|
|
123
|
+
/**
|
|
124
|
+
* Visit a parse tree produced by the `stringLiteral`
|
|
125
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
126
|
+
* @param ctx the parse tree
|
|
127
|
+
* @return the visitor result
|
|
128
|
+
*/
|
|
129
|
+
visitStringLiteral?: (ctx: StringLiteralContext) => Result;
|
|
130
|
+
/**
|
|
131
|
+
* Visit a parse tree produced by the `memberInvocation`
|
|
132
|
+
* labeled alternative in `OpraFilterParser.invocation`.
|
|
133
|
+
* @param ctx the parse tree
|
|
134
|
+
* @return the visitor result
|
|
135
|
+
*/
|
|
136
|
+
visitMemberInvocation?: (ctx: MemberInvocationContext) => Result;
|
|
137
|
+
/**
|
|
138
|
+
* Visit a parse tree produced by the `literalTerm`
|
|
139
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
140
|
+
* @param ctx the parse tree
|
|
141
|
+
* @return the visitor result
|
|
142
|
+
*/
|
|
143
|
+
visitLiteralTerm?: (ctx: LiteralTermContext) => Result;
|
|
144
|
+
/**
|
|
145
|
+
* Visit a parse tree produced by the `qualifiedIdentifierTerm`
|
|
146
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
147
|
+
* @param ctx the parse tree
|
|
148
|
+
* @return the visitor result
|
|
149
|
+
*/
|
|
150
|
+
visitQualifiedIdentifierTerm?: (ctx: QualifiedIdentifierTermContext) => Result;
|
|
151
|
+
/**
|
|
152
|
+
* Visit a parse tree produced by the `externalConstantTerm`
|
|
153
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
154
|
+
* @param ctx the parse tree
|
|
155
|
+
* @return the visitor result
|
|
156
|
+
*/
|
|
157
|
+
visitExternalConstantTerm?: (ctx: ExternalConstantTermContext) => Result;
|
|
158
|
+
/**
|
|
159
|
+
* Visit a parse tree produced by `OpraFilterParser.root`.
|
|
160
|
+
* @param ctx the parse tree
|
|
161
|
+
* @return the visitor result
|
|
162
|
+
*/
|
|
163
|
+
visitRoot?: (ctx: RootContext) => Result;
|
|
164
|
+
/**
|
|
165
|
+
* Visit a parse tree produced by `OpraFilterParser.expression`.
|
|
166
|
+
* @param ctx the parse tree
|
|
167
|
+
* @return the visitor result
|
|
168
|
+
*/
|
|
169
|
+
visitExpression?: (ctx: ExpressionContext) => Result;
|
|
170
|
+
/**
|
|
171
|
+
* Visit a parse tree produced by `OpraFilterParser.term`.
|
|
172
|
+
* @param ctx the parse tree
|
|
173
|
+
* @return the visitor result
|
|
174
|
+
*/
|
|
175
|
+
visitTerm?: (ctx: TermContext) => Result;
|
|
176
|
+
/**
|
|
177
|
+
* Visit a parse tree produced by `OpraFilterParser.invocable`.
|
|
178
|
+
* @param ctx the parse tree
|
|
179
|
+
* @return the visitor result
|
|
180
|
+
*/
|
|
181
|
+
visitInvocable?: (ctx: InvocableContext) => Result;
|
|
182
|
+
/**
|
|
183
|
+
* Visit a parse tree produced by `OpraFilterParser.invocation`.
|
|
184
|
+
* @param ctx the parse tree
|
|
185
|
+
* @return the visitor result
|
|
186
|
+
*/
|
|
187
|
+
visitInvocation?: (ctx: InvocationContext) => Result;
|
|
188
|
+
/**
|
|
189
|
+
* Visit a parse tree produced by `OpraFilterParser.indexer`.
|
|
190
|
+
* @param ctx the parse tree
|
|
191
|
+
* @return the visitor result
|
|
192
|
+
*/
|
|
193
|
+
visitIndexer?: (ctx: IndexerContext) => Result;
|
|
194
|
+
/**
|
|
195
|
+
* Visit a parse tree produced by `OpraFilterParser.function`.
|
|
196
|
+
* @param ctx the parse tree
|
|
197
|
+
* @return the visitor result
|
|
198
|
+
*/
|
|
199
|
+
visitFunction?: (ctx: FunctionContext) => Result;
|
|
200
|
+
/**
|
|
201
|
+
* Visit a parse tree produced by `OpraFilterParser.paramList`.
|
|
202
|
+
* @param ctx the parse tree
|
|
203
|
+
* @return the visitor result
|
|
204
|
+
*/
|
|
205
|
+
visitParamList?: (ctx: ParamListContext) => Result;
|
|
206
|
+
/**
|
|
207
|
+
* Visit a parse tree produced by `OpraFilterParser.unit`.
|
|
208
|
+
* @param ctx the parse tree
|
|
209
|
+
* @return the visitor result
|
|
210
|
+
*/
|
|
211
|
+
visitUnit?: (ctx: UnitContext) => Result;
|
|
212
|
+
/**
|
|
213
|
+
* Visit a parse tree produced by `OpraFilterParser.dateTimePrecision`.
|
|
214
|
+
* @param ctx the parse tree
|
|
215
|
+
* @return the visitor result
|
|
216
|
+
*/
|
|
217
|
+
visitDateTimePrecision?: (ctx: DateTimePrecisionContext) => Result;
|
|
218
|
+
/**
|
|
219
|
+
* Visit a parse tree produced by `OpraFilterParser.pluralDateTimePrecision`.
|
|
220
|
+
* @param ctx the parse tree
|
|
221
|
+
* @return the visitor result
|
|
222
|
+
*/
|
|
223
|
+
visitPluralDateTimePrecision?: (ctx: PluralDateTimePrecisionContext) => Result;
|
|
224
|
+
/**
|
|
225
|
+
* Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
|
|
226
|
+
* @param ctx the parse tree
|
|
227
|
+
* @return the visitor result
|
|
228
|
+
*/
|
|
229
|
+
visitQualifiedIdentifier?: (ctx: QualifiedIdentifierContext) => Result;
|
|
230
|
+
/**
|
|
231
|
+
* Visit a parse tree produced by `OpraFilterParser.externalConstant`.
|
|
232
|
+
* @param ctx the parse tree
|
|
233
|
+
* @return the visitor result
|
|
234
|
+
*/
|
|
235
|
+
visitExternalConstant?: (ctx: ExternalConstantContext) => Result;
|
|
236
|
+
/**
|
|
237
|
+
* Visit a parse tree produced by `OpraFilterParser.identifier`.
|
|
238
|
+
* @param ctx the parse tree
|
|
239
|
+
* @return the visitor result
|
|
240
|
+
*/
|
|
241
|
+
visitIdentifier?: (ctx: IdentifierContext) => Result;
|
|
242
|
+
/**
|
|
243
|
+
* Visit a parse tree produced by `OpraFilterParser.literal`.
|
|
244
|
+
* @param ctx the parse tree
|
|
245
|
+
* @return the visitor result
|
|
246
|
+
*/
|
|
247
|
+
visitLiteral?: (ctx: LiteralContext) => Result;
|
|
248
|
+
/**
|
|
249
|
+
* Visit a parse tree produced by `OpraFilterParser.compOp`.
|
|
250
|
+
* @param ctx the parse tree
|
|
251
|
+
* @return the visitor result
|
|
252
|
+
*/
|
|
253
|
+
visitCompOp?: (ctx: CompOpContext) => Result;
|
|
254
|
+
/**
|
|
255
|
+
* Visit a parse tree produced by `OpraFilterParser.arthOp`.
|
|
256
|
+
* @param ctx the parse tree
|
|
257
|
+
* @return the visitor result
|
|
258
|
+
*/
|
|
259
|
+
visitArthOp?: (ctx: ArthOpContext) => Result;
|
|
260
|
+
/**
|
|
261
|
+
* Visit a parse tree produced by `OpraFilterParser.polarOp`.
|
|
262
|
+
* @param ctx the parse tree
|
|
263
|
+
* @return the visitor result
|
|
264
|
+
*/
|
|
265
|
+
visitPolarOp?: (ctx: PolarOpContext) => Result;
|
|
266
|
+
/**
|
|
267
|
+
* Visit a parse tree produced by `OpraFilterParser.logOp`.
|
|
268
|
+
* @param ctx the parse tree
|
|
269
|
+
* @return the visitor result
|
|
270
|
+
*/
|
|
271
|
+
visitLogOp?: (ctx: LogOpContext) => Result;
|
|
272
|
+
/**
|
|
273
|
+
* Visit a parse tree produced by `OpraFilterParser.boolean`.
|
|
274
|
+
* @param ctx the parse tree
|
|
275
|
+
* @return the visitor result
|
|
276
|
+
*/
|
|
277
|
+
visitBoolean?: (ctx: BooleanContext) => Result;
|
|
278
|
+
/**
|
|
279
|
+
* Visit a parse tree produced by `OpraFilterParser.null`.
|
|
280
|
+
* @param ctx the parse tree
|
|
281
|
+
* @return the visitor result
|
|
282
|
+
*/
|
|
283
|
+
visitNull?: (ctx: NullContext) => Result;
|
|
284
|
+
/**
|
|
285
|
+
* Visit a parse tree produced by `OpraFilterParser.infinity`.
|
|
286
|
+
* @param ctx the parse tree
|
|
287
|
+
* @return the visitor result
|
|
288
|
+
*/
|
|
289
|
+
visitInfinity?: (ctx: InfinityContext) => Result;
|
|
290
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Expression } from '../abstract/expression.js';
|
|
2
|
+
export declare type ArithmeticOperator = '+' | '-' | '*' | '/';
|
|
3
|
+
export declare class ArithmeticExpression extends Expression {
|
|
4
|
+
items: ArithmeticExpressionItem[];
|
|
5
|
+
constructor();
|
|
6
|
+
append(op: ArithmeticOperator, expression: Expression): this;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ArithmeticExpressionItem {
|
|
10
|
+
op: ArithmeticOperator;
|
|
11
|
+
expression: Expression;
|
|
12
|
+
constructor(o: ArithmeticExpressionItem);
|
|
13
|
+
}
|