calabash-android 0.4.0.pre15 → 0.4.0.pre16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +2 -2
- data/test-server/instrumentation-backend/antlr/UIQuery.g +4 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/version/Version.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/Query.java +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/UIQuery.tokens +16 -15
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/antlr/UIQueryLexer.java +598 -452
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/antlr/UIQueryParser.java +158 -137
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryASTClassName.java +26 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryDirection.java +12 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryEvaluator.java +4 -9
- metadata +1 -1
Binary file
|
@@ -36,7 +36,10 @@ query : expr (WHITE! expr)*
|
|
36
36
|
;
|
37
37
|
|
38
38
|
|
39
|
-
expr : (className | filter | visibility | predicate)
|
39
|
+
expr : (className | filter | visibility | predicate | DIRECTION^)
|
40
|
+
;
|
41
|
+
|
42
|
+
DIRECTION : 'descendant' | 'child' | 'parent' | 'sibling'
|
40
43
|
;
|
41
44
|
|
42
45
|
className : (WILDCARD^ | NAME^ | QUALIFIED_NAME^);
|
data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/Query.java
CHANGED
@@ -21,6 +21,7 @@ import sh.calaba.instrumentationbackend.query.ast.UIQueryAST;
|
|
21
21
|
import sh.calaba.instrumentationbackend.query.ast.UIQueryASTClassName;
|
22
22
|
import sh.calaba.instrumentationbackend.query.ast.UIQueryASTPredicate;
|
23
23
|
import sh.calaba.instrumentationbackend.query.ast.UIQueryASTWith;
|
24
|
+
import sh.calaba.instrumentationbackend.query.ast.UIQueryDirection;
|
24
25
|
import sh.calaba.instrumentationbackend.query.ast.UIQueryEvaluator;
|
25
26
|
import sh.calaba.instrumentationbackend.query.ast.UIQueryVisibility;
|
26
27
|
import android.view.View;
|
@@ -134,6 +135,7 @@ public class Query {
|
|
134
135
|
//Cannot happen
|
135
136
|
throw new IllegalStateException(e);
|
136
137
|
}
|
138
|
+
|
137
139
|
|
138
140
|
|
139
141
|
case UIQueryParser.FILTER_COLON:
|
@@ -147,6 +149,8 @@ public class Query {
|
|
147
149
|
|
148
150
|
case UIQueryParser.BEGINPRED:
|
149
151
|
return UIQueryASTPredicate.newPredicateFromAST(step);
|
152
|
+
case UIQueryParser.DIRECTION:
|
153
|
+
return UIQueryDirection.valueOf(step.getText().toUpperCase());
|
150
154
|
|
151
155
|
default:
|
152
156
|
throw new InvalidUIQueryException("Unknown query: " + stepType
|
data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/UIQuery.tokens
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
ALL=4
|
2
2
|
BEGINPRED=5
|
3
3
|
BOOL=6
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
4
|
+
DIRECTION=7
|
5
|
+
ENDPRED=8
|
6
|
+
ESC_SEQ=9
|
7
|
+
FILTER_COLON=10
|
8
|
+
HEX_DIGIT=11
|
9
|
+
INT=12
|
10
|
+
NAME=13
|
11
|
+
NIL=14
|
12
|
+
OCTAL_ESC=15
|
13
|
+
QUALIFIED_NAME=16
|
14
|
+
RELATION=17
|
15
|
+
STRING=18
|
16
|
+
UNICODE_ESC=19
|
17
|
+
VISIBLE=20
|
18
|
+
WHITE=21
|
19
|
+
WILDCARD=22
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// $ANTLR 3.4 antlr/UIQuery.g 2013-
|
1
|
+
// $ANTLR 3.4 antlr/UIQuery.g 2013-02-02 18:08:57
|
2
2
|
|
3
3
|
package sh.calaba.instrumentationbackend.query.antlr;
|
4
4
|
|
@@ -14,21 +14,22 @@ public class UIQueryLexer extends Lexer {
|
|
14
14
|
public static final int ALL=4;
|
15
15
|
public static final int BEGINPRED=5;
|
16
16
|
public static final int BOOL=6;
|
17
|
-
public static final int
|
18
|
-
public static final int
|
19
|
-
public static final int
|
20
|
-
public static final int
|
21
|
-
public static final int
|
22
|
-
public static final int
|
23
|
-
public static final int
|
24
|
-
public static final int
|
25
|
-
public static final int
|
26
|
-
public static final int
|
27
|
-
public static final int
|
28
|
-
public static final int
|
29
|
-
public static final int
|
30
|
-
public static final int
|
31
|
-
public static final int
|
17
|
+
public static final int DIRECTION=7;
|
18
|
+
public static final int ENDPRED=8;
|
19
|
+
public static final int ESC_SEQ=9;
|
20
|
+
public static final int FILTER_COLON=10;
|
21
|
+
public static final int HEX_DIGIT=11;
|
22
|
+
public static final int INT=12;
|
23
|
+
public static final int NAME=13;
|
24
|
+
public static final int NIL=14;
|
25
|
+
public static final int OCTAL_ESC=15;
|
26
|
+
public static final int QUALIFIED_NAME=16;
|
27
|
+
public static final int RELATION=17;
|
28
|
+
public static final int STRING=18;
|
29
|
+
public static final int UNICODE_ESC=19;
|
30
|
+
public static final int VISIBLE=20;
|
31
|
+
public static final int WHITE=21;
|
32
|
+
public static final int WILDCARD=22;
|
32
33
|
|
33
34
|
public String getErrorMessage(RecognitionException e, String[] tokenNames)
|
34
35
|
{
|
@@ -64,13 +65,97 @@ public class UIQueryLexer extends Lexer {
|
|
64
65
|
}
|
65
66
|
public String getGrammarFileName() { return "antlr/UIQuery.g"; }
|
66
67
|
|
68
|
+
// $ANTLR start "DIRECTION"
|
69
|
+
public final void mDIRECTION() throws RecognitionException {
|
70
|
+
try {
|
71
|
+
int _type = DIRECTION;
|
72
|
+
int _channel = DEFAULT_TOKEN_CHANNEL;
|
73
|
+
// antlr/UIQuery.g:42:11: ( 'descendant' | 'child' | 'parent' | 'sibling' )
|
74
|
+
int alt1=4;
|
75
|
+
switch ( input.LA(1) ) {
|
76
|
+
case 'd':
|
77
|
+
{
|
78
|
+
alt1=1;
|
79
|
+
}
|
80
|
+
break;
|
81
|
+
case 'c':
|
82
|
+
{
|
83
|
+
alt1=2;
|
84
|
+
}
|
85
|
+
break;
|
86
|
+
case 'p':
|
87
|
+
{
|
88
|
+
alt1=3;
|
89
|
+
}
|
90
|
+
break;
|
91
|
+
case 's':
|
92
|
+
{
|
93
|
+
alt1=4;
|
94
|
+
}
|
95
|
+
break;
|
96
|
+
default:
|
97
|
+
NoViableAltException nvae =
|
98
|
+
new NoViableAltException("", 1, 0, input);
|
99
|
+
|
100
|
+
throw nvae;
|
101
|
+
|
102
|
+
}
|
103
|
+
|
104
|
+
switch (alt1) {
|
105
|
+
case 1 :
|
106
|
+
// antlr/UIQuery.g:42:13: 'descendant'
|
107
|
+
{
|
108
|
+
match("descendant");
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
}
|
113
|
+
break;
|
114
|
+
case 2 :
|
115
|
+
// antlr/UIQuery.g:42:28: 'child'
|
116
|
+
{
|
117
|
+
match("child");
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
}
|
122
|
+
break;
|
123
|
+
case 3 :
|
124
|
+
// antlr/UIQuery.g:42:38: 'parent'
|
125
|
+
{
|
126
|
+
match("parent");
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
}
|
131
|
+
break;
|
132
|
+
case 4 :
|
133
|
+
// antlr/UIQuery.g:42:49: 'sibling'
|
134
|
+
{
|
135
|
+
match("sibling");
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
}
|
140
|
+
break;
|
141
|
+
|
142
|
+
}
|
143
|
+
state.type = _type;
|
144
|
+
state.channel = _channel;
|
145
|
+
}
|
146
|
+
finally {
|
147
|
+
// do for sure before leaving
|
148
|
+
}
|
149
|
+
}
|
150
|
+
// $ANTLR end "DIRECTION"
|
151
|
+
|
67
152
|
// $ANTLR start "WILDCARD"
|
68
153
|
public final void mWILDCARD() throws RecognitionException {
|
69
154
|
try {
|
70
155
|
int _type = WILDCARD;
|
71
156
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
72
|
-
// antlr/UIQuery.g:
|
73
|
-
// antlr/UIQuery.g:
|
157
|
+
// antlr/UIQuery.g:47:10: ( '*' )
|
158
|
+
// antlr/UIQuery.g:47:12: '*'
|
74
159
|
{
|
75
160
|
match('*');
|
76
161
|
|
@@ -90,27 +175,27 @@ public class UIQueryLexer extends Lexer {
|
|
90
175
|
try {
|
91
176
|
int _type = QUALIFIED_NAME;
|
92
177
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
93
|
-
// antlr/UIQuery.g:
|
94
|
-
// antlr/UIQuery.g:
|
178
|
+
// antlr/UIQuery.g:49:16: ( NAME ( '.' NAME )+ )
|
179
|
+
// antlr/UIQuery.g:49:18: NAME ( '.' NAME )+
|
95
180
|
{
|
96
181
|
mNAME();
|
97
182
|
|
98
183
|
|
99
|
-
// antlr/UIQuery.g:
|
100
|
-
int
|
101
|
-
|
184
|
+
// antlr/UIQuery.g:49:23: ( '.' NAME )+
|
185
|
+
int cnt2=0;
|
186
|
+
loop2:
|
102
187
|
do {
|
103
|
-
int
|
104
|
-
int
|
188
|
+
int alt2=2;
|
189
|
+
int LA2_0 = input.LA(1);
|
105
190
|
|
106
|
-
if ( (
|
107
|
-
|
191
|
+
if ( (LA2_0=='.') ) {
|
192
|
+
alt2=1;
|
108
193
|
}
|
109
194
|
|
110
195
|
|
111
|
-
switch (
|
196
|
+
switch (alt2) {
|
112
197
|
case 1 :
|
113
|
-
// antlr/UIQuery.g:
|
198
|
+
// antlr/UIQuery.g:49:24: '.' NAME
|
114
199
|
{
|
115
200
|
match('.');
|
116
201
|
|
@@ -121,12 +206,12 @@ public class UIQueryLexer extends Lexer {
|
|
121
206
|
break;
|
122
207
|
|
123
208
|
default :
|
124
|
-
if (
|
209
|
+
if ( cnt2 >= 1 ) break loop2;
|
125
210
|
EarlyExitException eee =
|
126
|
-
new EarlyExitException(
|
211
|
+
new EarlyExitException(2, input);
|
127
212
|
throw eee;
|
128
213
|
}
|
129
|
-
|
214
|
+
cnt2++;
|
130
215
|
} while (true);
|
131
216
|
|
132
217
|
|
@@ -146,8 +231,8 @@ public class UIQueryLexer extends Lexer {
|
|
146
231
|
try {
|
147
232
|
int _type = ALL;
|
148
233
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
149
|
-
// antlr/UIQuery.g:
|
150
|
-
// antlr/UIQuery.g:
|
234
|
+
// antlr/UIQuery.g:53:5: ( 'all' )
|
235
|
+
// antlr/UIQuery.g:53:7: 'all'
|
151
236
|
{
|
152
237
|
match("all");
|
153
238
|
|
@@ -169,8 +254,8 @@ public class UIQueryLexer extends Lexer {
|
|
169
254
|
try {
|
170
255
|
int _type = VISIBLE;
|
171
256
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
172
|
-
// antlr/UIQuery.g:
|
173
|
-
// antlr/UIQuery.g:
|
257
|
+
// antlr/UIQuery.g:55:9: ( 'visible' )
|
258
|
+
// antlr/UIQuery.g:55:11: 'visible'
|
174
259
|
{
|
175
260
|
match("visible");
|
176
261
|
|
@@ -192,8 +277,8 @@ public class UIQueryLexer extends Lexer {
|
|
192
277
|
try {
|
193
278
|
int _type = FILTER_COLON;
|
194
279
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
195
|
-
// antlr/UIQuery.g:
|
196
|
-
// antlr/UIQuery.g:
|
280
|
+
// antlr/UIQuery.g:60:15: ( ':' )
|
281
|
+
// antlr/UIQuery.g:60:17: ':'
|
197
282
|
{
|
198
283
|
match(':');
|
199
284
|
|
@@ -213,8 +298,8 @@ public class UIQueryLexer extends Lexer {
|
|
213
298
|
try {
|
214
299
|
int _type = BEGINPRED;
|
215
300
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
216
|
-
// antlr/UIQuery.g:
|
217
|
-
// antlr/UIQuery.g:
|
301
|
+
// antlr/UIQuery.g:65:11: ( '{' )
|
302
|
+
// antlr/UIQuery.g:65:13: '{'
|
218
303
|
{
|
219
304
|
match('{');
|
220
305
|
|
@@ -234,8 +319,8 @@ public class UIQueryLexer extends Lexer {
|
|
234
319
|
try {
|
235
320
|
int _type = ENDPRED;
|
236
321
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
237
|
-
// antlr/UIQuery.g:
|
238
|
-
// antlr/UIQuery.g:
|
322
|
+
// antlr/UIQuery.g:67:11: ( '}' )
|
323
|
+
// antlr/UIQuery.g:67:13: '}'
|
239
324
|
{
|
240
325
|
match('}');
|
241
326
|
|
@@ -255,35 +340,35 @@ public class UIQueryLexer extends Lexer {
|
|
255
340
|
try {
|
256
341
|
int _type = RELATION;
|
257
342
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
258
|
-
// antlr/UIQuery.g:
|
259
|
-
int
|
343
|
+
// antlr/UIQuery.g:70:10: (| '=' | '>' | '>=' | '<' | '<=' | ( ( 'BEGINSWITH' | 'ENDSWITH' | 'CONTAINS' | 'LIKE' | 'beginswith' | 'endswith' | 'contains' | 'like' ) ( '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']' )? ) )
|
344
|
+
int alt6=7;
|
260
345
|
switch ( input.LA(1) ) {
|
261
346
|
case '=':
|
262
347
|
{
|
263
|
-
|
348
|
+
alt6=2;
|
264
349
|
}
|
265
350
|
break;
|
266
351
|
case '>':
|
267
352
|
{
|
268
|
-
int
|
353
|
+
int LA6_3 = input.LA(2);
|
269
354
|
|
270
|
-
if ( (
|
271
|
-
|
355
|
+
if ( (LA6_3=='=') ) {
|
356
|
+
alt6=4;
|
272
357
|
}
|
273
358
|
else {
|
274
|
-
|
359
|
+
alt6=3;
|
275
360
|
}
|
276
361
|
}
|
277
362
|
break;
|
278
363
|
case '<':
|
279
364
|
{
|
280
|
-
int
|
365
|
+
int LA6_4 = input.LA(2);
|
281
366
|
|
282
|
-
if ( (
|
283
|
-
|
367
|
+
if ( (LA6_4=='=') ) {
|
368
|
+
alt6=6;
|
284
369
|
}
|
285
370
|
else {
|
286
|
-
|
371
|
+
alt6=5;
|
287
372
|
}
|
288
373
|
}
|
289
374
|
break;
|
@@ -296,35 +381,35 @@ public class UIQueryLexer extends Lexer {
|
|
296
381
|
case 'e':
|
297
382
|
case 'l':
|
298
383
|
{
|
299
|
-
|
384
|
+
alt6=7;
|
300
385
|
}
|
301
386
|
break;
|
302
387
|
default:
|
303
|
-
|
388
|
+
alt6=1;
|
304
389
|
}
|
305
390
|
|
306
|
-
switch (
|
391
|
+
switch (alt6) {
|
307
392
|
case 1 :
|
308
|
-
// antlr/UIQuery.g:
|
393
|
+
// antlr/UIQuery.g:70:12:
|
309
394
|
{
|
310
395
|
}
|
311
396
|
break;
|
312
397
|
case 2 :
|
313
|
-
// antlr/UIQuery.g:
|
398
|
+
// antlr/UIQuery.g:70:14: '='
|
314
399
|
{
|
315
400
|
match('=');
|
316
401
|
|
317
402
|
}
|
318
403
|
break;
|
319
404
|
case 3 :
|
320
|
-
// antlr/UIQuery.g:
|
405
|
+
// antlr/UIQuery.g:70:20: '>'
|
321
406
|
{
|
322
407
|
match('>');
|
323
408
|
|
324
409
|
}
|
325
410
|
break;
|
326
411
|
case 4 :
|
327
|
-
// antlr/UIQuery.g:
|
412
|
+
// antlr/UIQuery.g:70:26: '>='
|
328
413
|
{
|
329
414
|
match(">=");
|
330
415
|
|
@@ -333,14 +418,14 @@ public class UIQueryLexer extends Lexer {
|
|
333
418
|
}
|
334
419
|
break;
|
335
420
|
case 5 :
|
336
|
-
// antlr/UIQuery.g:
|
421
|
+
// antlr/UIQuery.g:70:33: '<'
|
337
422
|
{
|
338
423
|
match('<');
|
339
424
|
|
340
425
|
}
|
341
426
|
break;
|
342
427
|
case 6 :
|
343
|
-
// antlr/UIQuery.g:
|
428
|
+
// antlr/UIQuery.g:70:39: '<='
|
344
429
|
{
|
345
430
|
match("<=");
|
346
431
|
|
@@ -349,65 +434,65 @@ public class UIQueryLexer extends Lexer {
|
|
349
434
|
}
|
350
435
|
break;
|
351
436
|
case 7 :
|
352
|
-
// antlr/UIQuery.g:
|
437
|
+
// antlr/UIQuery.g:71:4: ( ( 'BEGINSWITH' | 'ENDSWITH' | 'CONTAINS' | 'LIKE' | 'beginswith' | 'endswith' | 'contains' | 'like' ) ( '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']' )? )
|
353
438
|
{
|
354
|
-
// antlr/UIQuery.g:
|
355
|
-
// antlr/UIQuery.g:
|
439
|
+
// antlr/UIQuery.g:71:4: ( ( 'BEGINSWITH' | 'ENDSWITH' | 'CONTAINS' | 'LIKE' | 'beginswith' | 'endswith' | 'contains' | 'like' ) ( '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']' )? )
|
440
|
+
// antlr/UIQuery.g:71:5: ( 'BEGINSWITH' | 'ENDSWITH' | 'CONTAINS' | 'LIKE' | 'beginswith' | 'endswith' | 'contains' | 'like' ) ( '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']' )?
|
356
441
|
{
|
357
|
-
// antlr/UIQuery.g:
|
358
|
-
int
|
442
|
+
// antlr/UIQuery.g:71:5: ( 'BEGINSWITH' | 'ENDSWITH' | 'CONTAINS' | 'LIKE' | 'beginswith' | 'endswith' | 'contains' | 'like' )
|
443
|
+
int alt3=8;
|
359
444
|
switch ( input.LA(1) ) {
|
360
445
|
case 'B':
|
361
446
|
{
|
362
|
-
|
447
|
+
alt3=1;
|
363
448
|
}
|
364
449
|
break;
|
365
450
|
case 'E':
|
366
451
|
{
|
367
|
-
|
452
|
+
alt3=2;
|
368
453
|
}
|
369
454
|
break;
|
370
455
|
case 'C':
|
371
456
|
{
|
372
|
-
|
457
|
+
alt3=3;
|
373
458
|
}
|
374
459
|
break;
|
375
460
|
case 'L':
|
376
461
|
{
|
377
|
-
|
462
|
+
alt3=4;
|
378
463
|
}
|
379
464
|
break;
|
380
465
|
case 'b':
|
381
466
|
{
|
382
|
-
|
467
|
+
alt3=5;
|
383
468
|
}
|
384
469
|
break;
|
385
470
|
case 'e':
|
386
471
|
{
|
387
|
-
|
472
|
+
alt3=6;
|
388
473
|
}
|
389
474
|
break;
|
390
475
|
case 'c':
|
391
476
|
{
|
392
|
-
|
477
|
+
alt3=7;
|
393
478
|
}
|
394
479
|
break;
|
395
480
|
case 'l':
|
396
481
|
{
|
397
|
-
|
482
|
+
alt3=8;
|
398
483
|
}
|
399
484
|
break;
|
400
485
|
default:
|
401
486
|
NoViableAltException nvae =
|
402
|
-
new NoViableAltException("",
|
487
|
+
new NoViableAltException("", 3, 0, input);
|
403
488
|
|
404
489
|
throw nvae;
|
405
490
|
|
406
491
|
}
|
407
492
|
|
408
|
-
switch (
|
493
|
+
switch (alt3) {
|
409
494
|
case 1 :
|
410
|
-
// antlr/UIQuery.g:
|
495
|
+
// antlr/UIQuery.g:71:7: 'BEGINSWITH'
|
411
496
|
{
|
412
497
|
match("BEGINSWITH");
|
413
498
|
|
@@ -416,7 +501,7 @@ public class UIQueryLexer extends Lexer {
|
|
416
501
|
}
|
417
502
|
break;
|
418
503
|
case 2 :
|
419
|
-
// antlr/UIQuery.g:
|
504
|
+
// antlr/UIQuery.g:71:22: 'ENDSWITH'
|
420
505
|
{
|
421
506
|
match("ENDSWITH");
|
422
507
|
|
@@ -425,7 +510,7 @@ public class UIQueryLexer extends Lexer {
|
|
425
510
|
}
|
426
511
|
break;
|
427
512
|
case 3 :
|
428
|
-
// antlr/UIQuery.g:
|
513
|
+
// antlr/UIQuery.g:71:35: 'CONTAINS'
|
429
514
|
{
|
430
515
|
match("CONTAINS");
|
431
516
|
|
@@ -434,7 +519,7 @@ public class UIQueryLexer extends Lexer {
|
|
434
519
|
}
|
435
520
|
break;
|
436
521
|
case 4 :
|
437
|
-
// antlr/UIQuery.g:
|
522
|
+
// antlr/UIQuery.g:71:48: 'LIKE'
|
438
523
|
{
|
439
524
|
match("LIKE");
|
440
525
|
|
@@ -443,7 +528,7 @@ public class UIQueryLexer extends Lexer {
|
|
443
528
|
}
|
444
529
|
break;
|
445
530
|
case 5 :
|
446
|
-
// antlr/UIQuery.g:
|
531
|
+
// antlr/UIQuery.g:72:12: 'beginswith'
|
447
532
|
{
|
448
533
|
match("beginswith");
|
449
534
|
|
@@ -452,7 +537,7 @@ public class UIQueryLexer extends Lexer {
|
|
452
537
|
}
|
453
538
|
break;
|
454
539
|
case 6 :
|
455
|
-
// antlr/UIQuery.g:
|
540
|
+
// antlr/UIQuery.g:72:27: 'endswith'
|
456
541
|
{
|
457
542
|
match("endswith");
|
458
543
|
|
@@ -461,7 +546,7 @@ public class UIQueryLexer extends Lexer {
|
|
461
546
|
}
|
462
547
|
break;
|
463
548
|
case 7 :
|
464
|
-
// antlr/UIQuery.g:
|
549
|
+
// antlr/UIQuery.g:72:40: 'contains'
|
465
550
|
{
|
466
551
|
match("contains");
|
467
552
|
|
@@ -470,7 +555,7 @@ public class UIQueryLexer extends Lexer {
|
|
470
555
|
}
|
471
556
|
break;
|
472
557
|
case 8 :
|
473
|
-
// antlr/UIQuery.g:
|
558
|
+
// antlr/UIQuery.g:72:53: 'like'
|
474
559
|
{
|
475
560
|
match("like");
|
476
561
|
|
@@ -482,31 +567,31 @@ public class UIQueryLexer extends Lexer {
|
|
482
567
|
}
|
483
568
|
|
484
569
|
|
485
|
-
// antlr/UIQuery.g:
|
486
|
-
int
|
487
|
-
int
|
570
|
+
// antlr/UIQuery.g:72:61: ( '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']' )?
|
571
|
+
int alt5=2;
|
572
|
+
int LA5_0 = input.LA(1);
|
488
573
|
|
489
|
-
if ( (
|
490
|
-
|
574
|
+
if ( (LA5_0=='[') ) {
|
575
|
+
alt5=1;
|
491
576
|
}
|
492
|
-
switch (
|
577
|
+
switch (alt5) {
|
493
578
|
case 1 :
|
494
|
-
// antlr/UIQuery.g:
|
579
|
+
// antlr/UIQuery.g:72:62: '[' ( 'a' .. 'z' | 'A' .. 'Z' )* ']'
|
495
580
|
{
|
496
581
|
match('[');
|
497
582
|
|
498
|
-
// antlr/UIQuery.g:
|
499
|
-
|
583
|
+
// antlr/UIQuery.g:72:66: ( 'a' .. 'z' | 'A' .. 'Z' )*
|
584
|
+
loop4:
|
500
585
|
do {
|
501
|
-
int
|
502
|
-
int
|
586
|
+
int alt4=2;
|
587
|
+
int LA4_0 = input.LA(1);
|
503
588
|
|
504
|
-
if ( ((
|
505
|
-
|
589
|
+
if ( ((LA4_0 >= 'A' && LA4_0 <= 'Z')||(LA4_0 >= 'a' && LA4_0 <= 'z')) ) {
|
590
|
+
alt4=1;
|
506
591
|
}
|
507
592
|
|
508
593
|
|
509
|
-
switch (
|
594
|
+
switch (alt4) {
|
510
595
|
case 1 :
|
511
596
|
// antlr/UIQuery.g:
|
512
597
|
{
|
@@ -524,7 +609,7 @@ public class UIQueryLexer extends Lexer {
|
|
524
609
|
break;
|
525
610
|
|
526
611
|
default :
|
527
|
-
break
|
612
|
+
break loop4;
|
528
613
|
}
|
529
614
|
} while (true);
|
530
615
|
|
@@ -558,22 +643,22 @@ public class UIQueryLexer extends Lexer {
|
|
558
643
|
try {
|
559
644
|
int _type = INT;
|
560
645
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
561
|
-
// antlr/UIQuery.g:
|
562
|
-
// antlr/UIQuery.g:
|
646
|
+
// antlr/UIQuery.g:76:5: ( ( '0' .. '9' )+ )
|
647
|
+
// antlr/UIQuery.g:76:7: ( '0' .. '9' )+
|
563
648
|
{
|
564
|
-
// antlr/UIQuery.g:
|
565
|
-
int
|
566
|
-
|
649
|
+
// antlr/UIQuery.g:76:7: ( '0' .. '9' )+
|
650
|
+
int cnt7=0;
|
651
|
+
loop7:
|
567
652
|
do {
|
568
|
-
int
|
569
|
-
int
|
653
|
+
int alt7=2;
|
654
|
+
int LA7_0 = input.LA(1);
|
570
655
|
|
571
|
-
if ( ((
|
572
|
-
|
656
|
+
if ( ((LA7_0 >= '0' && LA7_0 <= '9')) ) {
|
657
|
+
alt7=1;
|
573
658
|
}
|
574
659
|
|
575
660
|
|
576
|
-
switch (
|
661
|
+
switch (alt7) {
|
577
662
|
case 1 :
|
578
663
|
// antlr/UIQuery.g:
|
579
664
|
{
|
@@ -591,12 +676,12 @@ public class UIQueryLexer extends Lexer {
|
|
591
676
|
break;
|
592
677
|
|
593
678
|
default :
|
594
|
-
if (
|
679
|
+
if ( cnt7 >= 1 ) break loop7;
|
595
680
|
EarlyExitException eee =
|
596
|
-
new EarlyExitException(
|
681
|
+
new EarlyExitException(7, input);
|
597
682
|
throw eee;
|
598
683
|
}
|
599
|
-
|
684
|
+
cnt7++;
|
600
685
|
} while (true);
|
601
686
|
|
602
687
|
|
@@ -616,26 +701,26 @@ public class UIQueryLexer extends Lexer {
|
|
616
701
|
try {
|
617
702
|
int _type = BOOL;
|
618
703
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
619
|
-
// antlr/UIQuery.g:
|
620
|
-
int
|
621
|
-
int
|
704
|
+
// antlr/UIQuery.g:79:6: ( 'true' | 'false' )
|
705
|
+
int alt8=2;
|
706
|
+
int LA8_0 = input.LA(1);
|
622
707
|
|
623
|
-
if ( (
|
624
|
-
|
708
|
+
if ( (LA8_0=='t') ) {
|
709
|
+
alt8=1;
|
625
710
|
}
|
626
|
-
else if ( (
|
627
|
-
|
711
|
+
else if ( (LA8_0=='f') ) {
|
712
|
+
alt8=2;
|
628
713
|
}
|
629
714
|
else {
|
630
715
|
NoViableAltException nvae =
|
631
|
-
new NoViableAltException("",
|
716
|
+
new NoViableAltException("", 8, 0, input);
|
632
717
|
|
633
718
|
throw nvae;
|
634
719
|
|
635
720
|
}
|
636
|
-
switch (
|
721
|
+
switch (alt8) {
|
637
722
|
case 1 :
|
638
|
-
// antlr/UIQuery.g:
|
723
|
+
// antlr/UIQuery.g:79:8: 'true'
|
639
724
|
{
|
640
725
|
match("true");
|
641
726
|
|
@@ -644,7 +729,7 @@ public class UIQueryLexer extends Lexer {
|
|
644
729
|
}
|
645
730
|
break;
|
646
731
|
case 2 :
|
647
|
-
// antlr/UIQuery.g:
|
732
|
+
// antlr/UIQuery.g:79:17: 'false'
|
648
733
|
{
|
649
734
|
match("false");
|
650
735
|
|
@@ -668,22 +753,22 @@ public class UIQueryLexer extends Lexer {
|
|
668
753
|
try {
|
669
754
|
int _type = NIL;
|
670
755
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
671
|
-
// antlr/UIQuery.g:
|
672
|
-
int
|
673
|
-
int
|
756
|
+
// antlr/UIQuery.g:82:5: ( 'nil' | 'null' )
|
757
|
+
int alt9=2;
|
758
|
+
int LA9_0 = input.LA(1);
|
674
759
|
|
675
|
-
if ( (
|
676
|
-
int
|
760
|
+
if ( (LA9_0=='n') ) {
|
761
|
+
int LA9_1 = input.LA(2);
|
677
762
|
|
678
|
-
if ( (
|
679
|
-
|
763
|
+
if ( (LA9_1=='i') ) {
|
764
|
+
alt9=1;
|
680
765
|
}
|
681
|
-
else if ( (
|
682
|
-
|
766
|
+
else if ( (LA9_1=='u') ) {
|
767
|
+
alt9=2;
|
683
768
|
}
|
684
769
|
else {
|
685
770
|
NoViableAltException nvae =
|
686
|
-
new NoViableAltException("",
|
771
|
+
new NoViableAltException("", 9, 1, input);
|
687
772
|
|
688
773
|
throw nvae;
|
689
774
|
|
@@ -691,14 +776,14 @@ public class UIQueryLexer extends Lexer {
|
|
691
776
|
}
|
692
777
|
else {
|
693
778
|
NoViableAltException nvae =
|
694
|
-
new NoViableAltException("",
|
779
|
+
new NoViableAltException("", 9, 0, input);
|
695
780
|
|
696
781
|
throw nvae;
|
697
782
|
|
698
783
|
}
|
699
|
-
switch (
|
784
|
+
switch (alt9) {
|
700
785
|
case 1 :
|
701
|
-
// antlr/UIQuery.g:
|
786
|
+
// antlr/UIQuery.g:82:7: 'nil'
|
702
787
|
{
|
703
788
|
match("nil");
|
704
789
|
|
@@ -707,7 +792,7 @@ public class UIQueryLexer extends Lexer {
|
|
707
792
|
}
|
708
793
|
break;
|
709
794
|
case 2 :
|
710
|
-
// antlr/UIQuery.g:
|
795
|
+
// antlr/UIQuery.g:82:15: 'null'
|
711
796
|
{
|
712
797
|
match("null");
|
713
798
|
|
@@ -731,8 +816,8 @@ public class UIQueryLexer extends Lexer {
|
|
731
816
|
try {
|
732
817
|
int _type = NAME;
|
733
818
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
734
|
-
// antlr/UIQuery.g:
|
735
|
-
// antlr/UIQuery.g:
|
819
|
+
// antlr/UIQuery.g:85:7: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
|
820
|
+
// antlr/UIQuery.g:85:9: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
|
736
821
|
{
|
737
822
|
if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
|
738
823
|
input.consume();
|
@@ -744,18 +829,18 @@ public class UIQueryLexer extends Lexer {
|
|
744
829
|
}
|
745
830
|
|
746
831
|
|
747
|
-
// antlr/UIQuery.g:
|
748
|
-
|
832
|
+
// antlr/UIQuery.g:85:33: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
|
833
|
+
loop10:
|
749
834
|
do {
|
750
|
-
int
|
751
|
-
int
|
835
|
+
int alt10=2;
|
836
|
+
int LA10_0 = input.LA(1);
|
752
837
|
|
753
|
-
if ( ((
|
754
|
-
|
838
|
+
if ( ((LA10_0 >= '0' && LA10_0 <= '9')||(LA10_0 >= 'A' && LA10_0 <= 'Z')||LA10_0=='_'||(LA10_0 >= 'a' && LA10_0 <= 'z')) ) {
|
839
|
+
alt10=1;
|
755
840
|
}
|
756
841
|
|
757
842
|
|
758
|
-
switch (
|
843
|
+
switch (alt10) {
|
759
844
|
case 1 :
|
760
845
|
// antlr/UIQuery.g:
|
761
846
|
{
|
@@ -773,7 +858,7 @@ public class UIQueryLexer extends Lexer {
|
|
773
858
|
break;
|
774
859
|
|
775
860
|
default :
|
776
|
-
break
|
861
|
+
break loop10;
|
777
862
|
}
|
778
863
|
} while (true);
|
779
864
|
|
@@ -794,28 +879,28 @@ public class UIQueryLexer extends Lexer {
|
|
794
879
|
try {
|
795
880
|
int _type = STRING;
|
796
881
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
797
|
-
// antlr/UIQuery.g:
|
798
|
-
// antlr/UIQuery.g:
|
882
|
+
// antlr/UIQuery.g:89:5: ( '\\'' ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )* '\\'' )
|
883
|
+
// antlr/UIQuery.g:89:8: '\\'' ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )* '\\''
|
799
884
|
{
|
800
885
|
match('\'');
|
801
886
|
|
802
|
-
// antlr/UIQuery.g:
|
803
|
-
|
887
|
+
// antlr/UIQuery.g:89:13: ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )*
|
888
|
+
loop11:
|
804
889
|
do {
|
805
|
-
int
|
806
|
-
int
|
890
|
+
int alt11=3;
|
891
|
+
int LA11_0 = input.LA(1);
|
807
892
|
|
808
|
-
if ( (
|
809
|
-
|
893
|
+
if ( (LA11_0=='\\') ) {
|
894
|
+
alt11=1;
|
810
895
|
}
|
811
|
-
else if ( ((
|
812
|
-
|
896
|
+
else if ( ((LA11_0 >= '\u0000' && LA11_0 <= '&')||(LA11_0 >= '(' && LA11_0 <= '[')||(LA11_0 >= ']' && LA11_0 <= '\uFFFF')) ) {
|
897
|
+
alt11=2;
|
813
898
|
}
|
814
899
|
|
815
900
|
|
816
|
-
switch (
|
901
|
+
switch (alt11) {
|
817
902
|
case 1 :
|
818
|
-
// antlr/UIQuery.g:
|
903
|
+
// antlr/UIQuery.g:89:15: ESC_SEQ
|
819
904
|
{
|
820
905
|
mESC_SEQ();
|
821
906
|
|
@@ -823,7 +908,7 @@ public class UIQueryLexer extends Lexer {
|
|
823
908
|
}
|
824
909
|
break;
|
825
910
|
case 2 :
|
826
|
-
// antlr/UIQuery.g:
|
911
|
+
// antlr/UIQuery.g:89:25: ~ ( '\\\\' | '\\'' )
|
827
912
|
{
|
828
913
|
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '&')||(input.LA(1) >= '(' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
|
829
914
|
input.consume();
|
@@ -839,7 +924,7 @@ public class UIQueryLexer extends Lexer {
|
|
839
924
|
break;
|
840
925
|
|
841
926
|
default :
|
842
|
-
break
|
927
|
+
break loop11;
|
843
928
|
}
|
844
929
|
} while (true);
|
845
930
|
|
@@ -862,24 +947,24 @@ public class UIQueryLexer extends Lexer {
|
|
862
947
|
try {
|
863
948
|
int _type = WHITE;
|
864
949
|
int _channel = DEFAULT_TOKEN_CHANNEL;
|
865
|
-
// antlr/UIQuery.g:
|
866
|
-
// antlr/UIQuery.g:
|
950
|
+
// antlr/UIQuery.g:92:9: ( ( ' ' )+ )
|
951
|
+
// antlr/UIQuery.g:92:11: ( ' ' )+
|
867
952
|
{
|
868
|
-
// antlr/UIQuery.g:
|
869
|
-
int
|
870
|
-
|
953
|
+
// antlr/UIQuery.g:92:11: ( ' ' )+
|
954
|
+
int cnt12=0;
|
955
|
+
loop12:
|
871
956
|
do {
|
872
|
-
int
|
873
|
-
int
|
957
|
+
int alt12=2;
|
958
|
+
int LA12_0 = input.LA(1);
|
874
959
|
|
875
|
-
if ( (
|
876
|
-
|
960
|
+
if ( (LA12_0==' ') ) {
|
961
|
+
alt12=1;
|
877
962
|
}
|
878
963
|
|
879
964
|
|
880
|
-
switch (
|
965
|
+
switch (alt12) {
|
881
966
|
case 1 :
|
882
|
-
// antlr/UIQuery.g:
|
967
|
+
// antlr/UIQuery.g:92:11: ' '
|
883
968
|
{
|
884
969
|
match(' ');
|
885
970
|
|
@@ -887,12 +972,12 @@ public class UIQueryLexer extends Lexer {
|
|
887
972
|
break;
|
888
973
|
|
889
974
|
default :
|
890
|
-
if (
|
975
|
+
if ( cnt12 >= 1 ) break loop12;
|
891
976
|
EarlyExitException eee =
|
892
|
-
new EarlyExitException(
|
977
|
+
new EarlyExitException(12, input);
|
893
978
|
throw eee;
|
894
979
|
}
|
895
|
-
|
980
|
+
cnt12++;
|
896
981
|
} while (true);
|
897
982
|
|
898
983
|
|
@@ -910,7 +995,7 @@ public class UIQueryLexer extends Lexer {
|
|
910
995
|
// $ANTLR start "HEX_DIGIT"
|
911
996
|
public final void mHEX_DIGIT() throws RecognitionException {
|
912
997
|
try {
|
913
|
-
// antlr/UIQuery.g:
|
998
|
+
// antlr/UIQuery.g:95:11: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
|
914
999
|
// antlr/UIQuery.g:
|
915
1000
|
{
|
916
1001
|
if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
|
@@ -936,11 +1021,11 @@ public class UIQueryLexer extends Lexer {
|
|
936
1021
|
// $ANTLR start "ESC_SEQ"
|
937
1022
|
public final void mESC_SEQ() throws RecognitionException {
|
938
1023
|
try {
|
939
|
-
// antlr/UIQuery.g:
|
940
|
-
int
|
941
|
-
int
|
1024
|
+
// antlr/UIQuery.g:99:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\'' | '\\\\' ) | UNICODE_ESC | OCTAL_ESC )
|
1025
|
+
int alt13=3;
|
1026
|
+
int LA13_0 = input.LA(1);
|
942
1027
|
|
943
|
-
if ( (
|
1028
|
+
if ( (LA13_0=='\\') ) {
|
944
1029
|
switch ( input.LA(2) ) {
|
945
1030
|
case '\'':
|
946
1031
|
case '\\':
|
@@ -950,12 +1035,12 @@ public class UIQueryLexer extends Lexer {
|
|
950
1035
|
case 'r':
|
951
1036
|
case 't':
|
952
1037
|
{
|
953
|
-
|
1038
|
+
alt13=1;
|
954
1039
|
}
|
955
1040
|
break;
|
956
1041
|
case 'u':
|
957
1042
|
{
|
958
|
-
|
1043
|
+
alt13=2;
|
959
1044
|
}
|
960
1045
|
break;
|
961
1046
|
case '0':
|
@@ -967,12 +1052,12 @@ public class UIQueryLexer extends Lexer {
|
|
967
1052
|
case '6':
|
968
1053
|
case '7':
|
969
1054
|
{
|
970
|
-
|
1055
|
+
alt13=3;
|
971
1056
|
}
|
972
1057
|
break;
|
973
1058
|
default:
|
974
1059
|
NoViableAltException nvae =
|
975
|
-
new NoViableAltException("",
|
1060
|
+
new NoViableAltException("", 13, 1, input);
|
976
1061
|
|
977
1062
|
throw nvae;
|
978
1063
|
|
@@ -981,14 +1066,14 @@ public class UIQueryLexer extends Lexer {
|
|
981
1066
|
}
|
982
1067
|
else {
|
983
1068
|
NoViableAltException nvae =
|
984
|
-
new NoViableAltException("",
|
1069
|
+
new NoViableAltException("", 13, 0, input);
|
985
1070
|
|
986
1071
|
throw nvae;
|
987
1072
|
|
988
1073
|
}
|
989
|
-
switch (
|
1074
|
+
switch (alt13) {
|
990
1075
|
case 1 :
|
991
|
-
// antlr/UIQuery.g:
|
1076
|
+
// antlr/UIQuery.g:99:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\'' | '\\\\' )
|
992
1077
|
{
|
993
1078
|
match('\\');
|
994
1079
|
|
@@ -1005,7 +1090,7 @@ public class UIQueryLexer extends Lexer {
|
|
1005
1090
|
}
|
1006
1091
|
break;
|
1007
1092
|
case 2 :
|
1008
|
-
// antlr/UIQuery.g:
|
1093
|
+
// antlr/UIQuery.g:100:9: UNICODE_ESC
|
1009
1094
|
{
|
1010
1095
|
mUNICODE_ESC();
|
1011
1096
|
|
@@ -1013,7 +1098,7 @@ public class UIQueryLexer extends Lexer {
|
|
1013
1098
|
}
|
1014
1099
|
break;
|
1015
1100
|
case 3 :
|
1016
|
-
// antlr/UIQuery.g:
|
1101
|
+
// antlr/UIQuery.g:101:9: OCTAL_ESC
|
1017
1102
|
{
|
1018
1103
|
mOCTAL_ESC();
|
1019
1104
|
|
@@ -1033,43 +1118,43 @@ public class UIQueryLexer extends Lexer {
|
|
1033
1118
|
// $ANTLR start "OCTAL_ESC"
|
1034
1119
|
public final void mOCTAL_ESC() throws RecognitionException {
|
1035
1120
|
try {
|
1036
|
-
// antlr/UIQuery.g:
|
1037
|
-
int
|
1038
|
-
int
|
1121
|
+
// antlr/UIQuery.g:106:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
|
1122
|
+
int alt14=3;
|
1123
|
+
int LA14_0 = input.LA(1);
|
1039
1124
|
|
1040
|
-
if ( (
|
1041
|
-
int
|
1125
|
+
if ( (LA14_0=='\\') ) {
|
1126
|
+
int LA14_1 = input.LA(2);
|
1042
1127
|
|
1043
|
-
if ( ((
|
1044
|
-
int
|
1128
|
+
if ( ((LA14_1 >= '0' && LA14_1 <= '3')) ) {
|
1129
|
+
int LA14_2 = input.LA(3);
|
1045
1130
|
|
1046
|
-
if ( ((
|
1047
|
-
int
|
1131
|
+
if ( ((LA14_2 >= '0' && LA14_2 <= '7')) ) {
|
1132
|
+
int LA14_4 = input.LA(4);
|
1048
1133
|
|
1049
|
-
if ( ((
|
1050
|
-
|
1134
|
+
if ( ((LA14_4 >= '0' && LA14_4 <= '7')) ) {
|
1135
|
+
alt14=1;
|
1051
1136
|
}
|
1052
1137
|
else {
|
1053
|
-
|
1138
|
+
alt14=2;
|
1054
1139
|
}
|
1055
1140
|
}
|
1056
1141
|
else {
|
1057
|
-
|
1142
|
+
alt14=3;
|
1058
1143
|
}
|
1059
1144
|
}
|
1060
|
-
else if ( ((
|
1061
|
-
int
|
1145
|
+
else if ( ((LA14_1 >= '4' && LA14_1 <= '7')) ) {
|
1146
|
+
int LA14_3 = input.LA(3);
|
1062
1147
|
|
1063
|
-
if ( ((
|
1064
|
-
|
1148
|
+
if ( ((LA14_3 >= '0' && LA14_3 <= '7')) ) {
|
1149
|
+
alt14=2;
|
1065
1150
|
}
|
1066
1151
|
else {
|
1067
|
-
|
1152
|
+
alt14=3;
|
1068
1153
|
}
|
1069
1154
|
}
|
1070
1155
|
else {
|
1071
1156
|
NoViableAltException nvae =
|
1072
|
-
new NoViableAltException("",
|
1157
|
+
new NoViableAltException("", 14, 1, input);
|
1073
1158
|
|
1074
1159
|
throw nvae;
|
1075
1160
|
|
@@ -1077,14 +1162,14 @@ public class UIQueryLexer extends Lexer {
|
|
1077
1162
|
}
|
1078
1163
|
else {
|
1079
1164
|
NoViableAltException nvae =
|
1080
|
-
new NoViableAltException("",
|
1165
|
+
new NoViableAltException("", 14, 0, input);
|
1081
1166
|
|
1082
1167
|
throw nvae;
|
1083
1168
|
|
1084
1169
|
}
|
1085
|
-
switch (
|
1170
|
+
switch (alt14) {
|
1086
1171
|
case 1 :
|
1087
|
-
// antlr/UIQuery.g:
|
1172
|
+
// antlr/UIQuery.g:106:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
|
1088
1173
|
{
|
1089
1174
|
match('\\');
|
1090
1175
|
|
@@ -1121,7 +1206,7 @@ public class UIQueryLexer extends Lexer {
|
|
1121
1206
|
}
|
1122
1207
|
break;
|
1123
1208
|
case 2 :
|
1124
|
-
// antlr/UIQuery.g:
|
1209
|
+
// antlr/UIQuery.g:107:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
|
1125
1210
|
{
|
1126
1211
|
match('\\');
|
1127
1212
|
|
@@ -1148,7 +1233,7 @@ public class UIQueryLexer extends Lexer {
|
|
1148
1233
|
}
|
1149
1234
|
break;
|
1150
1235
|
case 3 :
|
1151
|
-
// antlr/UIQuery.g:
|
1236
|
+
// antlr/UIQuery.g:108:9: '\\\\' ( '0' .. '7' )
|
1152
1237
|
{
|
1153
1238
|
match('\\');
|
1154
1239
|
|
@@ -1177,8 +1262,8 @@ public class UIQueryLexer extends Lexer {
|
|
1177
1262
|
// $ANTLR start "UNICODE_ESC"
|
1178
1263
|
public final void mUNICODE_ESC() throws RecognitionException {
|
1179
1264
|
try {
|
1180
|
-
// antlr/UIQuery.g:
|
1181
|
-
// antlr/UIQuery.g:
|
1265
|
+
// antlr/UIQuery.g:113:5: ( '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
|
1266
|
+
// antlr/UIQuery.g:113:9: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
|
1182
1267
|
{
|
1183
1268
|
match('\\');
|
1184
1269
|
|
@@ -1207,116 +1292,124 @@ public class UIQueryLexer extends Lexer {
|
|
1207
1292
|
// $ANTLR end "UNICODE_ESC"
|
1208
1293
|
|
1209
1294
|
public void mTokens() throws RecognitionException {
|
1210
|
-
// antlr/UIQuery.g:1:8: ( WILDCARD | QUALIFIED_NAME | ALL | VISIBLE | FILTER_COLON | BEGINPRED | ENDPRED | RELATION | INT | BOOL | NIL | NAME | STRING | WHITE )
|
1211
|
-
int
|
1212
|
-
|
1213
|
-
switch (
|
1295
|
+
// antlr/UIQuery.g:1:8: ( DIRECTION | WILDCARD | QUALIFIED_NAME | ALL | VISIBLE | FILTER_COLON | BEGINPRED | ENDPRED | RELATION | INT | BOOL | NIL | NAME | STRING | WHITE )
|
1296
|
+
int alt15=15;
|
1297
|
+
alt15 = dfa15.predict(input);
|
1298
|
+
switch (alt15) {
|
1214
1299
|
case 1 :
|
1215
|
-
// antlr/UIQuery.g:1:10:
|
1300
|
+
// antlr/UIQuery.g:1:10: DIRECTION
|
1216
1301
|
{
|
1217
|
-
|
1302
|
+
mDIRECTION();
|
1218
1303
|
|
1219
1304
|
|
1220
1305
|
}
|
1221
1306
|
break;
|
1222
1307
|
case 2 :
|
1223
|
-
// antlr/UIQuery.g:1:
|
1308
|
+
// antlr/UIQuery.g:1:20: WILDCARD
|
1224
1309
|
{
|
1225
|
-
|
1310
|
+
mWILDCARD();
|
1226
1311
|
|
1227
1312
|
|
1228
1313
|
}
|
1229
1314
|
break;
|
1230
1315
|
case 3 :
|
1231
|
-
// antlr/UIQuery.g:1:
|
1316
|
+
// antlr/UIQuery.g:1:29: QUALIFIED_NAME
|
1232
1317
|
{
|
1233
|
-
|
1318
|
+
mQUALIFIED_NAME();
|
1234
1319
|
|
1235
1320
|
|
1236
1321
|
}
|
1237
1322
|
break;
|
1238
1323
|
case 4 :
|
1239
|
-
// antlr/UIQuery.g:1:
|
1324
|
+
// antlr/UIQuery.g:1:44: ALL
|
1240
1325
|
{
|
1241
|
-
|
1326
|
+
mALL();
|
1242
1327
|
|
1243
1328
|
|
1244
1329
|
}
|
1245
1330
|
break;
|
1246
1331
|
case 5 :
|
1247
|
-
// antlr/UIQuery.g:1:
|
1332
|
+
// antlr/UIQuery.g:1:48: VISIBLE
|
1248
1333
|
{
|
1249
|
-
|
1334
|
+
mVISIBLE();
|
1250
1335
|
|
1251
1336
|
|
1252
1337
|
}
|
1253
1338
|
break;
|
1254
1339
|
case 6 :
|
1255
|
-
// antlr/UIQuery.g:1:
|
1340
|
+
// antlr/UIQuery.g:1:56: FILTER_COLON
|
1256
1341
|
{
|
1257
|
-
|
1342
|
+
mFILTER_COLON();
|
1258
1343
|
|
1259
1344
|
|
1260
1345
|
}
|
1261
1346
|
break;
|
1262
1347
|
case 7 :
|
1263
|
-
// antlr/UIQuery.g:1:69:
|
1348
|
+
// antlr/UIQuery.g:1:69: BEGINPRED
|
1264
1349
|
{
|
1265
|
-
|
1350
|
+
mBEGINPRED();
|
1266
1351
|
|
1267
1352
|
|
1268
1353
|
}
|
1269
1354
|
break;
|
1270
1355
|
case 8 :
|
1271
|
-
// antlr/UIQuery.g:1:
|
1356
|
+
// antlr/UIQuery.g:1:79: ENDPRED
|
1272
1357
|
{
|
1273
|
-
|
1358
|
+
mENDPRED();
|
1274
1359
|
|
1275
1360
|
|
1276
1361
|
}
|
1277
1362
|
break;
|
1278
1363
|
case 9 :
|
1279
|
-
// antlr/UIQuery.g:1:
|
1364
|
+
// antlr/UIQuery.g:1:87: RELATION
|
1280
1365
|
{
|
1281
|
-
|
1366
|
+
mRELATION();
|
1282
1367
|
|
1283
1368
|
|
1284
1369
|
}
|
1285
1370
|
break;
|
1286
1371
|
case 10 :
|
1287
|
-
// antlr/UIQuery.g:1:
|
1372
|
+
// antlr/UIQuery.g:1:96: INT
|
1288
1373
|
{
|
1289
|
-
|
1374
|
+
mINT();
|
1290
1375
|
|
1291
1376
|
|
1292
1377
|
}
|
1293
1378
|
break;
|
1294
1379
|
case 11 :
|
1295
|
-
// antlr/UIQuery.g:1:
|
1380
|
+
// antlr/UIQuery.g:1:100: BOOL
|
1296
1381
|
{
|
1297
|
-
|
1382
|
+
mBOOL();
|
1298
1383
|
|
1299
1384
|
|
1300
1385
|
}
|
1301
1386
|
break;
|
1302
1387
|
case 12 :
|
1303
|
-
// antlr/UIQuery.g:1:
|
1388
|
+
// antlr/UIQuery.g:1:105: NIL
|
1304
1389
|
{
|
1305
|
-
|
1390
|
+
mNIL();
|
1306
1391
|
|
1307
1392
|
|
1308
1393
|
}
|
1309
1394
|
break;
|
1310
1395
|
case 13 :
|
1311
|
-
// antlr/UIQuery.g:1:
|
1396
|
+
// antlr/UIQuery.g:1:109: NAME
|
1312
1397
|
{
|
1313
|
-
|
1398
|
+
mNAME();
|
1314
1399
|
|
1315
1400
|
|
1316
1401
|
}
|
1317
1402
|
break;
|
1318
1403
|
case 14 :
|
1319
|
-
// antlr/UIQuery.g:1:
|
1404
|
+
// antlr/UIQuery.g:1:114: STRING
|
1405
|
+
{
|
1406
|
+
mSTRING();
|
1407
|
+
|
1408
|
+
|
1409
|
+
}
|
1410
|
+
break;
|
1411
|
+
case 15 :
|
1412
|
+
// antlr/UIQuery.g:1:121: WHITE
|
1320
1413
|
{
|
1321
1414
|
mWHITE();
|
1322
1415
|
|
@@ -1329,237 +1422,290 @@ public class UIQueryLexer extends Lexer {
|
|
1329
1422
|
}
|
1330
1423
|
|
1331
1424
|
|
1332
|
-
protected
|
1333
|
-
static final String
|
1334
|
-
"\1\
|
1335
|
-
"\
|
1336
|
-
"\
|
1337
|
-
"\
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
"\
|
1343
|
-
|
1344
|
-
"\
|
1345
|
-
|
1346
|
-
"\
|
1347
|
-
|
1348
|
-
"\1\uffff\
|
1349
|
-
|
1350
|
-
"\
|
1351
|
-
|
1352
|
-
"\
|
1353
|
-
static final String
|
1354
|
-
|
1355
|
-
|
1356
|
-
"\1\
|
1357
|
-
"\1\
|
1425
|
+
protected DFA15 dfa15 = new DFA15(this);
|
1426
|
+
static final String DFA15_eotS =
|
1427
|
+
"\1\14\4\34\1\uffff\3\34\4\uffff\7\34\1\uffff\3\34\2\uffff\2\34\2"+
|
1428
|
+
"\uffff\26\34\1\106\12\34\1\121\6\34\1\uffff\4\34\1\14\2\34\1\14"+
|
1429
|
+
"\1\136\1\34\1\uffff\1\121\1\34\1\141\11\34\1\uffff\1\136\1\34\1"+
|
1430
|
+
"\uffff\1\34\1\141\11\34\1\141\1\166\6\34\1\14\1\uffff\1\34\2\14"+
|
1431
|
+
"\1\34\1\14\3\34\1\141\2\14";
|
1432
|
+
static final String DFA15_eofS =
|
1433
|
+
"\u0082\uffff";
|
1434
|
+
static final String DFA15_minS =
|
1435
|
+
"\1\40\4\56\1\uffff\3\56\4\uffff\7\56\1\uffff\3\56\2\uffff\2\56\2"+
|
1436
|
+
"\uffff\50\56\1\uffff\12\56\1\uffff\14\56\1\uffff\2\56\1\uffff\24"+
|
1437
|
+
"\56\1\uffff\13\56";
|
1438
|
+
static final String DFA15_maxS =
|
1439
|
+
"\1\175\4\172\1\uffff\3\172\4\uffff\7\172\1\uffff\3\172\2\uffff\2"+
|
1440
|
+
"\172\2\uffff\50\172\1\uffff\12\172\1\uffff\14\172\1\uffff\2\172"+
|
1441
|
+
"\1\uffff\24\172\1\uffff\13\172";
|
1442
|
+
static final String DFA15_acceptS =
|
1443
|
+
"\5\uffff\1\2\3\uffff\1\6\1\7\1\10\1\11\7\uffff\1\12\3\uffff\1\16"+
|
1444
|
+
"\1\17\2\uffff\1\15\1\3\50\uffff\1\4\12\uffff\1\14\14\uffff\1\13"+
|
1445
|
+
"\2\uffff\1\1\24\uffff\1\5\13\uffff";
|
1446
|
+
static final String DFA15_specialS =
|
1447
|
+
"\u0082\uffff}>";
|
1448
|
+
static final String[] DFA15_transitionS = {
|
1449
|
+
"\1\31\6\uffff\1\30\2\uffff\1\5\5\uffff\12\24\1\11\6\uffff\1"+
|
1450
|
+
"\27\1\10\1\16\1\27\1\15\6\27\1\17\16\27\4\uffff\1\27\1\uffff"+
|
1451
|
+
"\1\6\1\20\1\2\1\1\1\21\1\25\5\27\1\22\1\27\1\26\1\27\1\3\2\27"+
|
1452
|
+
"\1\4\1\23\1\27\1\7\4\27\1\12\1\uffff\1\13",
|
1453
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1454
|
+
"\1\32\25\33",
|
1455
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\7\33"+
|
1456
|
+
"\1\36\6\33\1\37\13\33",
|
1457
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\40"+
|
1458
|
+
"\31\33",
|
1459
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1460
|
+
"\1\41\21\33",
|
1461
|
+
"",
|
1462
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1463
|
+
"\1\42\16\33",
|
1464
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1465
|
+
"\1\43\21\33",
|
1466
|
+
"\1\35\1\uffff\12\33\7\uffff\4\33\1\44\25\33\4\uffff\1\33\1"+
|
1467
|
+
"\uffff\32\33",
|
1358
1468
|
"",
|
1359
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1360
|
-
"\1\27\16\30",
|
1361
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1362
|
-
"\1\33\21\30",
|
1363
|
-
"\1\32\1\uffff\12\30\7\uffff\4\30\1\34\25\30\4\uffff\1\30\1"+
|
1364
|
-
"\uffff\32\30",
|
1365
1469
|
"",
|
1366
1470
|
"",
|
1367
1471
|
"",
|
1472
|
+
"\1\35\1\uffff\12\33\7\uffff\15\33\1\45\14\33\4\uffff\1\33\1"+
|
1473
|
+
"\uffff\32\33",
|
1474
|
+
"\1\35\1\uffff\12\33\7\uffff\16\33\1\46\13\33\4\uffff\1\33\1"+
|
1475
|
+
"\uffff\32\33",
|
1476
|
+
"\1\35\1\uffff\12\33\7\uffff\10\33\1\47\21\33\4\uffff\1\33\1"+
|
1477
|
+
"\uffff\32\33",
|
1478
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1479
|
+
"\1\50\25\33",
|
1480
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1481
|
+
"\1\51\14\33",
|
1482
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1483
|
+
"\1\52\21\33",
|
1484
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\21\33"+
|
1485
|
+
"\1\53\10\33",
|
1368
1486
|
"",
|
1369
|
-
"\1\
|
1370
|
-
"\
|
1371
|
-
"\1\
|
1372
|
-
"\
|
1373
|
-
"\1\
|
1374
|
-
"\uffff\32\30",
|
1375
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\4\30"+
|
1376
|
-
"\1\40\25\30",
|
1377
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\15\30"+
|
1378
|
-
"\1\41\14\30",
|
1379
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\16\30"+
|
1380
|
-
"\1\42\13\30",
|
1381
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1382
|
-
"\1\43\21\30",
|
1383
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\21\30"+
|
1384
|
-
"\1\44\10\30",
|
1487
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\54"+
|
1488
|
+
"\31\33",
|
1489
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1490
|
+
"\1\55\13\33\1\56\5\33",
|
1491
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1385
1492
|
"",
|
1386
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\1\45"+
|
1387
|
-
"\31\30",
|
1388
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1389
|
-
"\1\46\13\30\1\47\5\30",
|
1390
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\32\30",
|
1391
1493
|
"",
|
1494
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1495
|
+
"\1\57\7\33",
|
1496
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1392
1497
|
"",
|
1393
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1394
|
-
"\1\50\16\30",
|
1395
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\32\30",
|
1396
1498
|
"",
|
1499
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1500
|
+
"\1\60\21\33",
|
1501
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1502
|
+
"\1\61\14\33",
|
1503
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\21\33"+
|
1504
|
+
"\1\62\10\33",
|
1505
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\33"+
|
1506
|
+
"\1\63\30\33",
|
1507
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1508
|
+
"\1\64\16\33",
|
1509
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1510
|
+
"\1\65\7\33",
|
1511
|
+
"\1\35\1\uffff\12\33\7\uffff\6\33\1\66\23\33\4\uffff\1\33\1"+
|
1512
|
+
"\uffff\32\33",
|
1513
|
+
"\1\35\1\uffff\12\33\7\uffff\3\33\1\67\26\33\4\uffff\1\33\1"+
|
1514
|
+
"\uffff\32\33",
|
1515
|
+
"\1\35\1\uffff\12\33\7\uffff\15\33\1\70\14\33\4\uffff\1\33\1"+
|
1516
|
+
"\uffff\32\33",
|
1517
|
+
"\1\35\1\uffff\12\33\7\uffff\12\33\1\71\17\33\4\uffff\1\33\1"+
|
1518
|
+
"\uffff\32\33",
|
1519
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\6\33"+
|
1520
|
+
"\1\72\23\33",
|
1521
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\3\33"+
|
1522
|
+
"\1\73\26\33",
|
1523
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\12\33"+
|
1524
|
+
"\1\74\17\33",
|
1525
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\24\33"+
|
1526
|
+
"\1\75\5\33",
|
1527
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1528
|
+
"\1\76\16\33",
|
1529
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1530
|
+
"\1\77\16\33",
|
1531
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1532
|
+
"\1\100\16\33",
|
1533
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\2\33"+
|
1534
|
+
"\1\101\27\33",
|
1535
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1536
|
+
"\1\102\16\33",
|
1537
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\23\33"+
|
1538
|
+
"\1\103\6\33",
|
1539
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1540
|
+
"\1\104\25\33",
|
1541
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1542
|
+
"\1\105\16\33",
|
1543
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1544
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1545
|
+
"\1\107\21\33",
|
1546
|
+
"\1\35\1\uffff\12\33\7\uffff\10\33\1\110\21\33\4\uffff\1\33"+
|
1547
|
+
"\1\uffff\32\33",
|
1548
|
+
"\1\35\1\uffff\12\33\7\uffff\22\33\1\111\7\33\4\uffff\1\33\1"+
|
1549
|
+
"\uffff\32\33",
|
1550
|
+
"\1\35\1\uffff\12\33\7\uffff\23\33\1\112\6\33\4\uffff\1\33\1"+
|
1551
|
+
"\uffff\32\33",
|
1552
|
+
"\1\35\1\uffff\12\33\7\uffff\4\33\1\113\25\33\4\uffff\1\33\1"+
|
1553
|
+
"\uffff\32\33",
|
1554
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1555
|
+
"\1\114\21\33",
|
1556
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1557
|
+
"\1\115\7\33",
|
1558
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1559
|
+
"\1\116\25\33",
|
1560
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1561
|
+
"\1\117\25\33",
|
1562
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1563
|
+
"\1\120\7\33",
|
1564
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1565
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1566
|
+
"\1\122\16\33",
|
1567
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1568
|
+
"\1\123\25\33",
|
1569
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\3\33"+
|
1570
|
+
"\1\124\26\33",
|
1571
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\125"+
|
1572
|
+
"\31\33",
|
1573
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1574
|
+
"\1\126\14\33",
|
1575
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1576
|
+
"\1\127\21\33",
|
1397
1577
|
"",
|
1398
|
-
"\1\
|
1399
|
-
"\1\
|
1400
|
-
"\1\
|
1401
|
-
"\uffff\32\
|
1402
|
-
"\1\
|
1403
|
-
"\uffff\32\
|
1404
|
-
"\1\
|
1405
|
-
"\
|
1406
|
-
"\1\
|
1407
|
-
"\uffff\32\
|
1408
|
-
"\1\
|
1409
|
-
"\1\
|
1410
|
-
"\1\
|
1411
|
-
"\1\
|
1412
|
-
"\1\
|
1413
|
-
"\1\
|
1414
|
-
"\1\
|
1415
|
-
"\1\61\17\30",
|
1416
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\24\30"+
|
1417
|
-
"\1\62\5\30",
|
1418
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1419
|
-
"\1\63\16\30",
|
1420
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1421
|
-
"\1\64\16\30",
|
1422
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1423
|
-
"\1\65\16\30",
|
1424
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\32\30",
|
1425
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1426
|
-
"\1\67\21\30",
|
1427
|
-
"\1\32\1\uffff\12\30\7\uffff\10\30\1\70\21\30\4\uffff\1\30\1"+
|
1428
|
-
"\uffff\32\30",
|
1429
|
-
"\1\32\1\uffff\12\30\7\uffff\22\30\1\71\7\30\4\uffff\1\30\1"+
|
1430
|
-
"\uffff\32\30",
|
1431
|
-
"\1\32\1\uffff\12\30\7\uffff\23\30\1\72\6\30\4\uffff\1\30\1"+
|
1432
|
-
"\uffff\32\30",
|
1433
|
-
"\1\32\1\uffff\12\30\7\uffff\4\30\1\73\25\30\4\uffff\1\30\1"+
|
1434
|
-
"\uffff\32\30",
|
1435
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1436
|
-
"\1\74\21\30",
|
1437
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\22\30"+
|
1438
|
-
"\1\75\7\30",
|
1439
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\23\30"+
|
1440
|
-
"\1\76\6\30",
|
1441
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\4\30"+
|
1442
|
-
"\1\77\25\30",
|
1443
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\4\30"+
|
1444
|
-
"\1\100\25\30",
|
1445
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\22\30"+
|
1446
|
-
"\1\101\7\30",
|
1447
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\32\30",
|
1448
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\13\30"+
|
1449
|
-
"\1\103\16\30",
|
1578
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\33"+
|
1579
|
+
"\1\130\30\33",
|
1580
|
+
"\1\35\1\uffff\12\33\7\uffff\15\33\1\131\14\33\4\uffff\1\33"+
|
1581
|
+
"\1\uffff\32\33",
|
1582
|
+
"\1\35\1\uffff\12\33\7\uffff\26\33\1\132\3\33\4\uffff\1\33\1"+
|
1583
|
+
"\uffff\32\33",
|
1584
|
+
"\1\35\1\uffff\12\33\7\uffff\1\133\31\33\4\uffff\1\33\1\uffff"+
|
1585
|
+
"\32\33",
|
1586
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1587
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1588
|
+
"\1\134\14\33",
|
1589
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\26\33"+
|
1590
|
+
"\1\135\3\33",
|
1591
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1592
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1593
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1594
|
+
"\1\137\25\33",
|
1450
1595
|
"",
|
1451
|
-
"\1\
|
1452
|
-
"\1\
|
1453
|
-
"\1\
|
1454
|
-
"\1\uffff\32\
|
1455
|
-
"\1\
|
1456
|
-
"\
|
1457
|
-
"\1\
|
1458
|
-
"\
|
1459
|
-
"\1\
|
1460
|
-
"\1\
|
1461
|
-
"\1\
|
1462
|
-
"\1\
|
1463
|
-
"\1\
|
1464
|
-
"\
|
1465
|
-
"\
|
1466
|
-
"\1\
|
1467
|
-
"\1\
|
1468
|
-
"\1\
|
1469
|
-
"\1\
|
1596
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1597
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1598
|
+
"\1\140\14\33",
|
1599
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1600
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1601
|
+
"\1\142\21\33",
|
1602
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\23\33"+
|
1603
|
+
"\1\143\6\33",
|
1604
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1605
|
+
"\1\144\14\33",
|
1606
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\13\33"+
|
1607
|
+
"\1\145\16\33",
|
1608
|
+
"\1\35\1\uffff\12\33\7\uffff\22\33\1\146\7\33\4\uffff\1\33\1"+
|
1609
|
+
"\uffff\32\33",
|
1610
|
+
"\1\35\1\uffff\12\33\7\uffff\10\33\1\147\21\33\4\uffff\1\33"+
|
1611
|
+
"\1\uffff\32\33",
|
1612
|
+
"\1\35\1\uffff\12\33\7\uffff\10\33\1\150\21\33\4\uffff\1\33"+
|
1613
|
+
"\1\uffff\32\33",
|
1614
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1615
|
+
"\1\151\7\33",
|
1616
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1617
|
+
"\1\152\21\33",
|
1470
1618
|
"",
|
1471
|
-
"\1\
|
1472
|
-
"\1\
|
1473
|
-
"\1\
|
1474
|
-
"\1\32\1\uffff\12\30\7\uffff\22\30\1\116\7\30\4\uffff\1\30\1"+
|
1475
|
-
"\uffff\32\30",
|
1476
|
-
"\1\32\1\uffff\12\30\7\uffff\10\30\1\117\21\30\4\uffff\1\30"+
|
1477
|
-
"\1\uffff\32\30",
|
1478
|
-
"\1\32\1\uffff\12\30\7\uffff\10\30\1\120\21\30\4\uffff\1\30"+
|
1479
|
-
"\1\uffff\32\30",
|
1480
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\22\30"+
|
1481
|
-
"\1\121\7\30",
|
1482
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1483
|
-
"\1\122\21\30",
|
1484
|
-
"\1\32\1\uffff\12\30\7\uffff\32\30\4\uffff\1\30\1\uffff\10\30"+
|
1485
|
-
"\1\123\21\30",
|
1619
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1620
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\3\33"+
|
1621
|
+
"\1\153\26\33",
|
1486
1622
|
"",
|
1487
|
-
"\1\
|
1488
|
-
"\1\
|
1489
|
-
"\1\
|
1490
|
-
"\1\
|
1491
|
-
"\
|
1492
|
-
"\1\
|
1493
|
-
"\
|
1494
|
-
"\1\
|
1495
|
-
"\
|
1496
|
-
"\1\
|
1497
|
-
"\
|
1498
|
-
"\1\
|
1499
|
-
"\1\
|
1500
|
-
"\1\
|
1501
|
-
"\1\
|
1502
|
-
"\1\
|
1503
|
-
"\1\
|
1504
|
-
"\1\uffff\32\
|
1505
|
-
"\
|
1506
|
-
"\uffff\32\
|
1507
|
-
"\1\
|
1508
|
-
"\uffff\32\
|
1509
|
-
"\1\
|
1510
|
-
"\1\
|
1511
|
-
"\1\
|
1512
|
-
"\1\
|
1513
|
-
"\
|
1514
|
-
"\1\
|
1623
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1624
|
+
"\1\154\14\33",
|
1625
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1626
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\6\33"+
|
1627
|
+
"\1\155\23\33",
|
1628
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\4\33"+
|
1629
|
+
"\1\156\25\33",
|
1630
|
+
"\1\35\1\uffff\12\33\7\uffff\26\33\1\157\3\33\4\uffff\1\33\1"+
|
1631
|
+
"\uffff\32\33",
|
1632
|
+
"\1\35\1\uffff\12\33\7\uffff\23\33\1\160\6\33\4\uffff\1\33\1"+
|
1633
|
+
"\uffff\32\33",
|
1634
|
+
"\1\35\1\uffff\12\33\7\uffff\15\33\1\161\14\33\4\uffff\1\33"+
|
1635
|
+
"\1\uffff\32\33",
|
1636
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\26\33"+
|
1637
|
+
"\1\162\3\33",
|
1638
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\23\33"+
|
1639
|
+
"\1\163\6\33",
|
1640
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\1\164"+
|
1641
|
+
"\31\33",
|
1642
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\22\33"+
|
1643
|
+
"\1\165\7\33",
|
1644
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1645
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1646
|
+
"\1\35\1\uffff\12\33\7\uffff\10\33\1\167\21\33\4\uffff\1\33"+
|
1647
|
+
"\1\uffff\32\33",
|
1648
|
+
"\1\35\1\uffff\12\33\7\uffff\7\33\1\170\22\33\4\uffff\1\33\1"+
|
1649
|
+
"\uffff\32\33",
|
1650
|
+
"\1\35\1\uffff\12\33\7\uffff\22\33\1\171\7\33\4\uffff\1\33\1"+
|
1651
|
+
"\uffff\32\33",
|
1652
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\10\33"+
|
1653
|
+
"\1\172\21\33",
|
1654
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\7\33"+
|
1655
|
+
"\1\173\22\33",
|
1656
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\15\33"+
|
1657
|
+
"\1\174\14\33",
|
1658
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1515
1659
|
"",
|
1516
|
-
"\1\
|
1517
|
-
"\uffff\32\
|
1518
|
-
"\1\
|
1519
|
-
"\1\
|
1520
|
-
"\1\
|
1521
|
-
"\1\
|
1522
|
-
"\1\
|
1523
|
-
"\1\
|
1524
|
-
"\1\
|
1525
|
-
"\uffff\
|
1526
|
-
"\1\
|
1527
|
-
"\1\
|
1528
|
-
"\1\
|
1529
|
-
"\1\
|
1660
|
+
"\1\35\1\uffff\12\33\7\uffff\23\33\1\175\6\33\4\uffff\1\33\1"+
|
1661
|
+
"\uffff\32\33",
|
1662
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1663
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1664
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\23\33"+
|
1665
|
+
"\1\176\6\33",
|
1666
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1667
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\23\33"+
|
1668
|
+
"\1\177\6\33",
|
1669
|
+
"\1\35\1\uffff\12\33\7\uffff\7\33\1\u0080\22\33\4\uffff\1\33"+
|
1670
|
+
"\1\uffff\32\33",
|
1671
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\7\33"+
|
1672
|
+
"\1\u0081\22\33",
|
1673
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1674
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33",
|
1675
|
+
"\1\35\1\uffff\12\33\7\uffff\32\33\4\uffff\1\33\1\uffff\32\33"
|
1530
1676
|
};
|
1531
1677
|
|
1532
|
-
static final short[]
|
1533
|
-
static final short[]
|
1534
|
-
static final char[]
|
1535
|
-
static final char[]
|
1536
|
-
static final short[]
|
1537
|
-
static final short[]
|
1538
|
-
static final short[][]
|
1678
|
+
static final short[] DFA15_eot = DFA.unpackEncodedString(DFA15_eotS);
|
1679
|
+
static final short[] DFA15_eof = DFA.unpackEncodedString(DFA15_eofS);
|
1680
|
+
static final char[] DFA15_min = DFA.unpackEncodedStringToUnsignedChars(DFA15_minS);
|
1681
|
+
static final char[] DFA15_max = DFA.unpackEncodedStringToUnsignedChars(DFA15_maxS);
|
1682
|
+
static final short[] DFA15_accept = DFA.unpackEncodedString(DFA15_acceptS);
|
1683
|
+
static final short[] DFA15_special = DFA.unpackEncodedString(DFA15_specialS);
|
1684
|
+
static final short[][] DFA15_transition;
|
1539
1685
|
|
1540
1686
|
static {
|
1541
|
-
int numStates =
|
1542
|
-
|
1687
|
+
int numStates = DFA15_transitionS.length;
|
1688
|
+
DFA15_transition = new short[numStates][];
|
1543
1689
|
for (int i=0; i<numStates; i++) {
|
1544
|
-
|
1690
|
+
DFA15_transition[i] = DFA.unpackEncodedString(DFA15_transitionS[i]);
|
1545
1691
|
}
|
1546
1692
|
}
|
1547
1693
|
|
1548
|
-
class
|
1694
|
+
class DFA15 extends DFA {
|
1549
1695
|
|
1550
|
-
public
|
1696
|
+
public DFA15(BaseRecognizer recognizer) {
|
1551
1697
|
this.recognizer = recognizer;
|
1552
|
-
this.decisionNumber =
|
1553
|
-
this.eot =
|
1554
|
-
this.eof =
|
1555
|
-
this.min =
|
1556
|
-
this.max =
|
1557
|
-
this.accept =
|
1558
|
-
this.special =
|
1559
|
-
this.transition =
|
1698
|
+
this.decisionNumber = 15;
|
1699
|
+
this.eot = DFA15_eot;
|
1700
|
+
this.eof = DFA15_eof;
|
1701
|
+
this.min = DFA15_min;
|
1702
|
+
this.max = DFA15_max;
|
1703
|
+
this.accept = DFA15_accept;
|
1704
|
+
this.special = DFA15_special;
|
1705
|
+
this.transition = DFA15_transition;
|
1560
1706
|
}
|
1561
1707
|
public String getDescription() {
|
1562
|
-
return "1:1: Tokens : ( WILDCARD | QUALIFIED_NAME | ALL | VISIBLE | FILTER_COLON | BEGINPRED | ENDPRED | RELATION | INT | BOOL | NIL | NAME | STRING | WHITE );";
|
1708
|
+
return "1:1: Tokens : ( DIRECTION | WILDCARD | QUALIFIED_NAME | ALL | VISIBLE | FILTER_COLON | BEGINPRED | ENDPRED | RELATION | INT | BOOL | NIL | NAME | STRING | WHITE );";
|
1563
1709
|
}
|
1564
1710
|
}
|
1565
1711
|
|