1 /* Generated By:JJTree&JavaCC: Do not edit this line. QueryParserTokenManager.java */
2 package com
.yahoo
.pig
.impl
.logicalLayer
.parser
;
5 import java
.lang
.reflect
.*;
6 import com
.yahoo
.pig
.impl
.logicalLayer
.*;
7 import com
.yahoo
.pig
.impl
.eval
.*;
8 import com
.yahoo
.pig
.impl
.eval
.func
.*;
9 import com
.yahoo
.pig
.impl
.eval
.groupby
.*;
10 import com
.yahoo
.pig
.impl
.eval
.filter
.*;
11 import com
.yahoo
.pig
.impl
.eval
.window
.*;
12 import com
.yahoo
.pig
.impl
.eval
.sad
.*;
13 import com
.yahoo
.pig
.impl
.logicalLayer
.schema
.*;
14 import com
.yahoo
.pig
.*;
15 import com
.yahoo
.pig
.impl
.PigContext
;
16 import com
.yahoo
.pig
.PigServer
.ExecType
;
17 import com
.yahoo
.pig
.impl
.physicalLayer
.IntermedResult
;
18 import com
.yahoo
.pig
.impl
.io
.FileLocalizer
;
19 import com
.yahoo
.pig
.builtin
.*;
21 public class QueryParserTokenManager
implements QueryParserConstants
23 public java
.io
.PrintStream debugStream
= System
.out
;
24 public void setDebugStream(java
.io
.PrintStream ds
) { debugStream
= ds
; }
25 private final int jjStopStringLiteralDfa_0(int pos
, long active0
, long active1
)
30 if ((active0
& 0x400L
) != 0L)
35 if ((active0
& 0x20000000000L
) != 0L)
40 if ((active0
& 0x2000000000000000L
) != 0L)
42 if ((active0
& 0x100000000L
) != 0L)
47 if ((active0
& 0x1000000000000000L
) != 0L)
49 if ((active1
& 0x8L
) != 0L)
51 if ((active0
& 0x10000000000000L
) != 0L)
53 if ((active0
& 0x8020000000L
) != 0L)
58 if ((active0
& 0x17ed7fff800L
) != 0L)
63 if ((active0
& 0x4000000000000000L
) != 0L)
67 if ((active0
& 0x80c04000L
) != 0L)
69 if ((active0
& 0x3ff773fbc00L
) != 0L)
71 if (jjmatchedPos
!= 1)
80 if ((active0
& 0x140300000L
) != 0L)
82 if ((active0
& 0x3fe370ffc00L
) != 0L)
90 if ((active0
& 0x20000000400L
) != 0L)
92 if ((active0
& 0x1fe370ff800L
) != 0L)
100 if ((active0
& 0x20270c4000L
) != 0L)
102 if ((active0
& 0x1de1003b800L
) != 0L)
110 if ((active0
& 0x4400000800L
) != 0L)
112 if ((active0
& 0x19a1003b000L
) != 0L)
120 if ((active0
& 0x1180002b000L
) != 0L)
122 if ((active0
& 0x8210010000L
) != 0L)
130 if ((active0
& 0x8010010000L
) != 0L)
132 if ((active0
& 0x200000000L
) != 0L)
140 if ((active0
& 0x200000000L
) != 0L)
148 if ((active0
& 0x200000000L
) != 0L)
156 if ((active0
& 0x200000000L
) != 0L)
167 private final int jjStartNfa_0(int pos
, long active0
, long active1
)
169 return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos
, active0
, active1
), pos
+ 1);
171 private final int jjStopAtPos(int pos
, int kind
)
173 jjmatchedKind
= kind
;
177 private final int jjStartNfaWithStates_0(int pos
, int kind
, int state
)
179 jjmatchedKind
= kind
;
181 try { curChar
= input_stream
.readChar(); }
182 catch(java
.io
.IOException e
) { return pos
+ 1; }
183 return jjMoveNfa_0(state
, pos
+ 1);
185 private final int jjMoveStringLiteralDfa0_0()
190 return jjStartNfaWithStates_0(0, 67, 28);
192 return jjStopAtPos(0, 54);
194 return jjStopAtPos(0, 55);
196 return jjStopAtPos(0, 27);
198 return jjStopAtPos(0, 59);
200 return jjStopAtPos(0, 56);
202 return jjStartNfaWithStates_0(0, 60, 0);
204 return jjStartNfaWithStates_0(0, 62, 56);
206 return jjStartNfaWithStates_0(0, 61, 3);
208 return jjStopAtPos(0, 64);
210 return jjStopAtPos(0, 53);
212 return jjStartNfaWithStates_0(0, 52, 14);
214 return jjStopAtPos(0, 63);
216 return jjStopAtPos(0, 65);
218 return jjStopAtPos(0, 66);
221 return jjMoveStringLiteralDfa1_0(0x40708000L
);
224 return jjMoveStringLiteralDfa1_0(0x800000L
);
227 return jjMoveStringLiteralDfa1_0(0x200060000L
);
230 return jjMoveStringLiteralDfa1_0(0x10000L
);
233 return jjMoveStringLiteralDfa1_0(0x20000000000L
);
236 return jjMoveStringLiteralDfa1_0(0x10000001800L
);
239 return jjMoveStringLiteralDfa1_0(0x8020000000L
);
242 return jjMoveStringLiteralDfa1_0(0x2000000000L
);
245 return jjMoveStringLiteralDfa1_0(0x2000000L
);
248 return jjMoveStringLiteralDfa1_0(0x400L
);
251 return jjMoveStringLiteralDfa1_0(0x1000002000L
);
254 return jjMoveStringLiteralDfa1_0(0x100000000L
);
257 return jjMoveStringLiteralDfa1_0(0x84004000L
);
260 return jjMoveStringLiteralDfa1_0(0x10000000L
);
263 return jjMoveStringLiteralDfa1_0(0x800000000L
);
266 return jjMoveStringLiteralDfa1_0(0x4000000000L
);
269 return jjMoveStringLiteralDfa1_0(0x1080000L
);
272 return jjMoveStringLiteralDfa1_0(0x400000000L
);
274 return jjStopAtPos(0, 57);
276 return jjStopAtPos(0, 58);
278 return jjMoveNfa_0(2, 0);
281 private final int jjMoveStringLiteralDfa1_0(long active0
)
283 try { curChar
= input_stream
.readChar(); }
284 catch(java
.io
.IOException e
) {
285 jjStopStringLiteralDfa_0(0, active0
, 0L);
292 return jjMoveStringLiteralDfa2_0(active0
, 0x10002000L
);
295 return jjMoveStringLiteralDfa2_0(active0
, 0x8800000000L
);
298 return jjMoveStringLiteralDfa2_0(active0
, 0x1400010800L
);
301 return jjMoveStringLiteralDfa2_0(active0
, 0x10000100000L
);
304 return jjMoveStringLiteralDfa2_0(active0
, 0x42280000L
);
307 return jjMoveStringLiteralDfa2_0(active0
, 0x2300021400L
);
310 if ((active0
& 0x80000000L
) != 0L)
315 return jjMoveStringLiteralDfa2_0(active0
, 0x2004c000L
);
318 if ((active0
& 0x400000L
) != 0L)
319 return jjStartNfaWithStates_0(1, 22, 55);
320 return jjMoveStringLiteralDfa2_0(active0
, 0x1000000L
);
323 return jjMoveStringLiteralDfa2_0(active0
, 0x4004000000L
);
326 return jjMoveStringLiteralDfa2_0(active0
, 0x20000000000L
);
329 if ((active0
& 0x800000L
) != 0L)
330 return jjStartNfaWithStates_0(1, 23, 55);
335 return jjStartNfa_0(0, active0
, 0L);
337 private final int jjMoveStringLiteralDfa2_0(long old0
, long active0
)
339 if (((active0
&= old0
)) == 0L)
340 return jjStartNfa_0(0, old0
, 0L);
341 try { curChar
= input_stream
.readChar(); }
342 catch(java
.io
.IOException e
) {
343 jjStopStringLiteralDfa_0(1, active0
, 0L);
350 return jjMoveStringLiteralDfa3_0(active0
, 0x30000000400L
);
353 return jjMoveStringLiteralDfa3_0(active0
, 0x800000000L
);
356 if ((active0
& 0x40000000L
) != 0L)
357 return jjStartNfaWithStates_0(2, 30, 55);
358 return jjMoveStringLiteralDfa3_0(active0
, 0x4000L
);
361 return jjMoveStringLiteralDfa3_0(active0
, 0x20000L
);
364 return jjMoveStringLiteralDfa3_0(active0
, 0x1080000L
);
367 if ((active0
& 0x100000L
) != 0L)
368 return jjStartNfaWithStates_0(2, 20, 55);
369 return jjMoveStringLiteralDfa3_0(active0
, 0x800L
);
372 return jjMoveStringLiteralDfa3_0(active0
, 0x9602000000L
);
375 return jjMoveStringLiteralDfa3_0(active0
, 0x20040000L
);
378 return jjMoveStringLiteralDfa3_0(active0
, 0x4000000000L
);
381 return jjMoveStringLiteralDfa3_0(active0
, 0x10009000L
);
384 return jjMoveStringLiteralDfa3_0(active0
, 0x10000L
);
387 if ((active0
& 0x100000000L
) != 0L)
388 return jjStartNfaWithStates_0(2, 32, 55);
389 return jjMoveStringLiteralDfa3_0(active0
, 0x4002000L
);
392 return jjMoveStringLiteralDfa3_0(active0
, 0x2000000000L
);
395 if ((active0
& 0x200000L
) != 0L)
396 return jjStartNfaWithStates_0(2, 21, 55);
401 return jjStartNfa_0(1, active0
, 0L);
403 private final int jjMoveStringLiteralDfa3_0(long old0
, long active0
)
405 if (((active0
&= old0
)) == 0L)
406 return jjStartNfa_0(1, old0
, 0L);
407 try { curChar
= input_stream
.readChar(); }
408 catch(java
.io
.IOException e
) {
409 jjStopStringLiteralDfa_0(2, active0
, 0L);
416 return jjMoveStringLiteralDfa4_0(active0
, 0x10008000L
);
419 return jjMoveStringLiteralDfa4_0(active0
, 0x2000L
);
422 if ((active0
& 0x400L
) != 0L)
423 return jjStartNfaWithStates_0(3, 10, 55);
424 return jjMoveStringLiteralDfa4_0(active0
, 0x400000000L
);
427 return jjMoveStringLiteralDfa4_0(active0
, 0x8006005000L
);
430 if ((active0
& 0x20000000000L
) != 0L)
431 return jjStartNfaWithStates_0(3, 41, 55);
432 return jjMoveStringLiteralDfa4_0(active0
, 0x4000000000L
);
435 return jjMoveStringLiteralDfa4_0(active0
, 0x1000000L
);
438 return jjMoveStringLiteralDfa4_0(active0
, 0x800080000L
);
441 return jjMoveStringLiteralDfa4_0(active0
, 0x2000020000L
);
444 return jjMoveStringLiteralDfa4_0(active0
, 0x40000L
);
447 return jjMoveStringLiteralDfa4_0(active0
, 0x10200010800L
);
450 return jjMoveStringLiteralDfa4_0(active0
, 0x1020000000L
);
454 return jjStartNfa_0(2, active0
, 0L);
456 private final int jjMoveStringLiteralDfa4_0(long old0
, long active0
)
458 if (((active0
&= old0
)) == 0L)
459 return jjStartNfa_0(2, old0
, 0L);
460 try { curChar
= input_stream
.readChar(); }
461 catch(java
.io
.IOException e
) {
462 jjStopStringLiteralDfa_0(3, active0
, 0L);
469 return jjMoveStringLiteralDfa5_0(active0
, 0x1000L
);
472 return jjMoveStringLiteralDfa5_0(active0
, 0x4000000800L
);
475 if ((active0
& 0x1000000L
) != 0L)
476 return jjStartNfaWithStates_0(4, 24, 55);
480 return jjMoveStringLiteralDfa5_0(active0
, 0x2000L
);
483 return jjMoveStringLiteralDfa5_0(active0
, 0x200010000L
);
486 return jjMoveStringLiteralDfa5_0(active0
, 0x10000000L
);
489 if ((active0
& 0x80000L
) != 0L)
490 return jjStartNfaWithStates_0(4, 19, 55);
491 return jjMoveStringLiteralDfa5_0(active0
, 0x800008000L
);
494 return jjMoveStringLiteralDfa5_0(active0
, 0x400020000L
);
497 if ((active0
& 0x20000000L
) != 0L)
498 return jjStartNfaWithStates_0(4, 29, 55);
502 if ((active0
& 0x4000L
) != 0L)
503 return jjStartNfaWithStates_0(4, 14, 55);
504 else if ((active0
& 0x2000000L
) != 0L)
505 return jjStartNfaWithStates_0(4, 25, 55);
506 else if ((active0
& 0x4000000L
) != 0L)
507 return jjStartNfaWithStates_0(4, 26, 55);
508 return jjMoveStringLiteralDfa5_0(active0
, 0x8000000000L
);
511 if ((active0
& 0x40000L
) != 0L)
512 return jjStartNfaWithStates_0(4, 18, 55);
513 else if ((active0
& 0x2000000000L
) != 0L)
514 return jjStartNfaWithStates_0(4, 37, 55);
518 return jjMoveStringLiteralDfa5_0(active0
, 0x11000000000L
);
522 return jjStartNfa_0(3, active0
, 0L);
524 private final int jjMoveStringLiteralDfa5_0(long old0
, long active0
)
526 if (((active0
&= old0
)) == 0L)
527 return jjStartNfa_0(3, old0
, 0L);
528 try { curChar
= input_stream
.readChar(); }
529 catch(java
.io
.IOException e
) {
530 jjStopStringLiteralDfa_0(4, active0
, 0L);
537 return jjMoveStringLiteralDfa6_0(active0
, 0x8000000000L
);
540 return jjMoveStringLiteralDfa6_0(active0
, 0x1000L
);
543 return jjMoveStringLiteralDfa6_0(active0
, 0x800000000L
);
546 return jjMoveStringLiteralDfa6_0(active0
, 0x11000002000L
);
549 return jjMoveStringLiteralDfa6_0(active0
, 0x8000L
);
552 return jjMoveStringLiteralDfa6_0(active0
, 0x10000000L
);
555 return jjMoveStringLiteralDfa6_0(active0
, 0x200010000L
);
558 if ((active0
& 0x800L
) != 0L)
559 return jjStartNfaWithStates_0(5, 11, 55);
563 if ((active0
& 0x4000000000L
) != 0L)
564 return jjStartNfaWithStates_0(5, 38, 55);
568 return jjMoveStringLiteralDfa6_0(active0
, 0x20000L
);
571 if ((active0
& 0x400000000L
) != 0L)
572 return jjStartNfaWithStates_0(5, 34, 55);
577 return jjStartNfa_0(4, active0
, 0L);
579 private final int jjMoveStringLiteralDfa6_0(long old0
, long active0
)
581 if (((active0
&= old0
)) == 0L)
582 return jjStartNfa_0(4, old0
, 0L);
583 try { curChar
= input_stream
.readChar(); }
584 catch(java
.io
.IOException e
) {
585 jjStopStringLiteralDfa_0(5, active0
, 0L);
592 return jjMoveStringLiteralDfa7_0(active0
, 0x10000L
);
595 if ((active0
& 0x8000L
) != 0L)
596 return jjStartNfaWithStates_0(6, 15, 55);
597 return jjMoveStringLiteralDfa7_0(active0
, 0x10000000L
);
600 if ((active0
& 0x1000L
) != 0L)
601 return jjStartNfaWithStates_0(6, 12, 55);
605 if ((active0
& 0x10000000000L
) != 0L)
606 return jjStartNfaWithStates_0(6, 40, 55);
610 if ((active0
& 0x20000L
) != 0L)
611 return jjStartNfaWithStates_0(6, 17, 55);
615 if ((active0
& 0x2000L
) != 0L)
616 return jjStartNfaWithStates_0(6, 13, 55);
617 else if ((active0
& 0x800000000L
) != 0L)
618 return jjStartNfaWithStates_0(6, 35, 55);
619 else if ((active0
& 0x1000000000L
) != 0L)
620 return jjStartNfaWithStates_0(6, 36, 55);
624 return jjMoveStringLiteralDfa7_0(active0
, 0x8000000000L
);
627 return jjMoveStringLiteralDfa7_0(active0
, 0x200000000L
);
631 return jjStartNfa_0(5, active0
, 0L);
633 private final int jjMoveStringLiteralDfa7_0(long old0
, long active0
)
635 if (((active0
&= old0
)) == 0L)
636 return jjStartNfa_0(5, old0
, 0L);
637 try { curChar
= input_stream
.readChar(); }
638 catch(java
.io
.IOException e
) {
639 jjStopStringLiteralDfa_0(6, active0
, 0L);
646 if ((active0
& 0x8000000000L
) != 0L)
647 return jjStartNfaWithStates_0(7, 39, 55);
651 if ((active0
& 0x10000000L
) != 0L)
652 return jjStartNfaWithStates_0(7, 28, 55);
656 return jjMoveStringLiteralDfa8_0(active0
, 0x200000000L
);
659 if ((active0
& 0x10000L
) != 0L)
660 return jjStartNfaWithStates_0(7, 16, 55);
665 return jjStartNfa_0(6, active0
, 0L);
667 private final int jjMoveStringLiteralDfa8_0(long old0
, long active0
)
669 if (((active0
&= old0
)) == 0L)
670 return jjStartNfa_0(6, old0
, 0L);
671 try { curChar
= input_stream
.readChar(); }
672 catch(java
.io
.IOException e
) {
673 jjStopStringLiteralDfa_0(7, active0
, 0L);
680 return jjMoveStringLiteralDfa9_0(active0
, 0x200000000L
);
684 return jjStartNfa_0(7, active0
, 0L);
686 private final int jjMoveStringLiteralDfa9_0(long old0
, long active0
)
688 if (((active0
&= old0
)) == 0L)
689 return jjStartNfa_0(7, old0
, 0L);
690 try { curChar
= input_stream
.readChar(); }
691 catch(java
.io
.IOException e
) {
692 jjStopStringLiteralDfa_0(8, active0
, 0L);
699 return jjMoveStringLiteralDfa10_0(active0
, 0x200000000L
);
703 return jjStartNfa_0(8, active0
, 0L);
705 private final int jjMoveStringLiteralDfa10_0(long old0
, long active0
)
707 if (((active0
&= old0
)) == 0L)
708 return jjStartNfa_0(8, old0
, 0L);
709 try { curChar
= input_stream
.readChar(); }
710 catch(java
.io
.IOException e
) {
711 jjStopStringLiteralDfa_0(9, active0
, 0L);
718 return jjMoveStringLiteralDfa11_0(active0
, 0x200000000L
);
722 return jjStartNfa_0(9, active0
, 0L);
724 private final int jjMoveStringLiteralDfa11_0(long old0
, long active0
)
726 if (((active0
&= old0
)) == 0L)
727 return jjStartNfa_0(9, old0
, 0L);
728 try { curChar
= input_stream
.readChar(); }
729 catch(java
.io
.IOException e
) {
730 jjStopStringLiteralDfa_0(10, active0
, 0L);
737 if ((active0
& 0x200000000L
) != 0L)
738 return jjStartNfaWithStates_0(11, 33, 55);
743 return jjStartNfa_0(10, active0
, 0L);
745 private final void jjCheckNAdd(int state
)
747 if (jjrounds
[state
] != jjround
)
749 jjstateSet
[jjnewStateCnt
++] = state
;
750 jjrounds
[state
] = jjround
;
753 private final void jjAddStates(int start
, int end
)
756 jjstateSet
[jjnewStateCnt
++] = jjnextStates
[start
];
757 } while (start
++ != end
);
759 private final void jjCheckNAddTwoStates(int state1
, int state2
)
764 private final void jjCheckNAddStates(int start
, int end
)
767 jjCheckNAdd(jjnextStates
[start
]);
768 } while (start
++ != end
);
770 private final void jjCheckNAddStates(int start
)
772 jjCheckNAdd(jjnextStates
[start
]);
773 jjCheckNAdd(jjnextStates
[start
+ 1]);
775 static final long[] jjbitVec0
= {
776 0x0L
, 0x0L
, 0xffffffffffffffffL
, 0xffffffffffffffffL
778 private final int jjMoveNfa_0(int startState
, int curPos
)
784 jjstateSet
[0] = startState
;
785 int j
, kind
= 0x7fffffff;
788 if (++jjround
== 0x7fffffff)
792 long l
= 1L << curChar
;
795 switch(jjstateSet
[--i
])
798 if ((0x3ff000000000000L
& l
) != 0L)
802 jjCheckNAddTwoStates(21, 23);
804 else if (curChar
== 58)
805 jjstateSet
[jjnewStateCnt
++] = 22;
808 if ((0x3ff000000000000L
& l
) != 0L)
812 jjCheckNAddTwoStates(21, 23);
814 else if (curChar
== 58)
815 jjstateSet
[jjnewStateCnt
++] = 22;
818 if ((0x3ff000000000000L
& l
) != 0L)
822 jjCheckNAddTwoStates(21, 23);
824 else if (curChar
== 58)
825 jjstateSet
[jjnewStateCnt
++] = 22;
828 if ((0x3ff000000000000L
& l
) != 0L)
832 jjCheckNAddTwoStates(21, 23);
834 else if (curChar
== 58)
835 jjstateSet
[jjnewStateCnt
++] = 22;
838 if ((0x3ff000000000000L
& l
) != 0L)
842 jjCheckNAddTwoStates(21, 23);
844 else if (curChar
== 58)
845 jjstateSet
[jjnewStateCnt
++] = 22;
848 if ((0x3ff000000000000L
& l
) != 0L)
854 if ((0x3ff000000000000L
& l
) != 0L)
858 jjCheckNAddTwoStates(30, 31);
862 if ((0x3ff000000000000L
& l
) != 0L)
866 jjCheckNAddStates(0, 6);
868 else if ((0x5000000000000000L
& l
) != 0L)
873 else if (curChar
== 46)
874 jjCheckNAddTwoStates(30, 38);
875 else if (curChar
== 36)
877 else if (curChar
== 39)
878 jjCheckNAddTwoStates(25, 26);
879 else if (curChar
== 61)
881 else if (curChar
== 33)
883 else if (curChar
== 47)
884 jjstateSet
[jjnewStateCnt
++] = 3;
885 else if (curChar
== 45)
886 jjstateSet
[jjnewStateCnt
++] = 0;
889 else if (curChar
== 62)
900 if ((0xffffffffffffdbffL
& l
) == 0L)
908 jjCheckNAddTwoStates(4, 5);
911 if ((0xfffffbffffffffffL
& l
) != 0L)
912 jjCheckNAddTwoStates(4, 5);
916 jjCheckNAddStates(7, 9);
919 if ((0xffff7bffffffffffL
& l
) != 0L)
920 jjCheckNAddTwoStates(7, 5);
923 if ((0xfffffbffffffffffL
& l
) != 0L)
924 jjCheckNAddTwoStates(7, 5);
927 if (curChar
== 47 && kind
> 6)
932 jjstateSet
[jjnewStateCnt
++] = 3;
935 if (curChar
== 61 && kind
> 9)
947 if ((0x5000000000000000L
& l
) != 0L && kind
> 9)
959 if ((0x3ff000000000000L
& l
) == 0L)
963 jjCheckNAddTwoStates(21, 23);
970 jjCheckNAddTwoStates(21, 23);
974 jjstateSet
[jjnewStateCnt
++] = 22;
978 jjCheckNAddTwoStates(25, 26);
981 if ((0xffffff7fffffffffL
& l
) != 0L)
982 jjCheckNAddTwoStates(25, 26);
985 if (curChar
== 39 && kind
> 50)
993 if ((0x3ff000000000000L
& l
) == 0L)
1001 jjCheckNAddTwoStates(30, 38);
1004 if ((0x3ff000000000000L
& l
) == 0L)
1008 jjCheckNAddTwoStates(30, 31);
1011 if ((0x280000000000L
& l
) != 0L)
1012 jjCheckNAddTwoStates(33, 36);
1015 if ((0x3ff000000000000L
& l
) == 0L)
1019 jjCheckNAddTwoStates(33, 34);
1026 if ((0x3ff000000000000L
& l
) == 0L)
1037 if ((0x3ff000000000000L
& l
) == 0L)
1044 if ((0x3ff000000000000L
& l
) == 0L)
1051 if ((0x3ff000000000000L
& l
) == 0L)
1055 jjCheckNAddStates(0, 6);
1058 if ((0x3ff000000000000L
& l
) == 0L)
1065 if ((0x3ff000000000000L
& l
) == 0L)
1069 jjCheckNAddStates(10, 12);
1076 if ((0x3ff000000000000L
& l
) == 0L)
1080 jjCheckNAddTwoStates(49, 31);
1083 if ((0x3ff000000000000L
& l
) == 0L)
1087 jjCheckNAddTwoStates(50, 51);
1094 if ((0x3ff000000000000L
& l
) == 0L)
1101 if ((0x3ff000000000000L
& l
) == 0L)
1109 } while(i
!= startsAt
);
1111 else if (curChar
< 128)
1113 long l
= 1L << (curChar
& 077);
1116 switch(jjstateSet
[--i
])
1119 if ((0x7fffffe87fffffeL
& l
) != 0L)
1123 jjCheckNAddTwoStates(21, 23);
1125 if ((0x7fffffe07fffffeL
& l
) != 0L)
1129 jjCheckNAddStates(13, 15);
1131 if ((0x2000000020L
& l
) != 0L)
1135 if ((0x7fffffe87fffffeL
& l
) != 0L)
1139 jjCheckNAddTwoStates(21, 23);
1141 if ((0x7fffffe07fffffeL
& l
) != 0L)
1145 jjCheckNAddStates(13, 15);
1147 if ((0x2000000020000L
& l
) != 0L)
1154 if ((0x7fffffe87fffffeL
& l
) != 0L)
1158 jjCheckNAddTwoStates(21, 23);
1160 if ((0x7fffffe07fffffeL
& l
) != 0L)
1164 jjCheckNAddStates(13, 15);
1166 if ((0x10000000100000L
& l
) != 0L)
1171 if ((0x10000000100000L
& l
) != 0L)
1175 if ((0x7fffffe87fffffeL
& l
) != 0L)
1179 jjCheckNAddTwoStates(21, 23);
1181 if ((0x7fffffe07fffffeL
& l
) != 0L)
1185 jjCheckNAddStates(13, 15);
1187 if ((0x10000000100000L
& l
) != 0L)
1192 if ((0x10000000100000L
& l
) != 0L)
1196 if ((0x7fffffe87fffffeL
& l
) != 0L)
1200 jjCheckNAddTwoStates(21, 23);
1202 if ((0x7fffffe07fffffeL
& l
) != 0L)
1206 jjCheckNAddStates(13, 15);
1210 if ((0x7fffffe07fffffeL
& l
) != 0L)
1214 jjCheckNAddStates(13, 15);
1216 if ((0x8000000080L
& l
) != 0L)
1217 jjCheckNAddTwoStates(44, 42);
1218 else if ((0x100000001000L
& l
) != 0L)
1219 jjCheckNAddTwoStates(41, 42);
1220 else if ((0x2000000020L
& l
) != 0L)
1222 else if ((0x400000004000L
& l
) != 0L)
1223 jjstateSet
[jjnewStateCnt
++] = 11;
1228 jjstateSet
[jjnewStateCnt
++] = 1;
1231 jjCheckNAddTwoStates(4, 5);
1235 jjCheckNAddTwoStates(7, 5);
1238 if ((0x2000000020000L
& l
) != 0L && kind
> 9)
1242 if ((0x400000004000L
& l
) != 0L)
1243 jjstateSet
[jjnewStateCnt
++] = 11;
1246 if ((0x2000000020L
& l
) != 0L)
1250 if ((0x7fffffe07fffffeL
& l
) == 0L)
1254 jjCheckNAddStates(13, 15);
1257 if ((0x7fffffe87fffffeL
& l
) == 0L)
1261 jjCheckNAddTwoStates(21, 23);
1264 jjAddStates(16, 17);
1267 if ((0x2000000020L
& l
) != 0L)
1268 jjAddStates(18, 20);
1271 if ((0x100000001000L
& l
) != 0L)
1272 jjCheckNAddTwoStates(41, 42);
1275 if ((0x2000000020L
& l
) != 0L && kind
> 9)
1279 if ((0x10000000100000L
& l
) != 0L && kind
> 9)
1283 if ((0x8000000080L
& l
) != 0L)
1284 jjCheckNAddTwoStates(44, 42);
1288 } while(i
!= startsAt
);
1292 int i2
= (curChar
& 0xff) >> 6;
1293 long l2
= 1L << (curChar
& 077);
1296 switch(jjstateSet
[--i
])
1299 if ((jjbitVec0
[i2
] & l2
) == 0L)
1303 jjstateSet
[jjnewStateCnt
++] = 1;
1306 if ((jjbitVec0
[i2
] & l2
) != 0L)
1307 jjCheckNAddTwoStates(4, 5);
1311 if ((jjbitVec0
[i2
] & l2
) != 0L)
1312 jjCheckNAddTwoStates(7, 5);
1315 if ((jjbitVec0
[i2
] & l2
) != 0L)
1316 jjAddStates(16, 17);
1320 } while(i
!= startsAt
);
1322 if (kind
!= 0x7fffffff)
1324 jjmatchedKind
= kind
;
1325 jjmatchedPos
= curPos
;
1329 if ((i
= jjnewStateCnt
) == (startsAt
= 54 - (jjnewStateCnt
= startsAt
)))
1331 try { curChar
= input_stream
.readChar(); }
1332 catch(java
.io
.IOException e
) { return curPos
; }
1335 static final int[] jjnextStates
= {
1336 46, 47, 48, 31, 50, 51, 53, 5, 6, 8, 47, 48, 31, 20, 21, 23,
1339 public static final String
[] jjstrLiteralImages
= {
1340 "", null, null, null, null, null, null, null, null, null, null, null, null,
1341 null, null, null, null, null, null, null, null, null, null, null, null, null, null,
1342 "\52", null, null, null, null, null, null, null, null, null, null, null, null, null,
1343 null, null, null, null, null, null, null, null, null, null, null, "\75", "\73",
1344 "\50", "\51", "\54", "\173", "\175", "\53", "\55", "\57", "\56", "\77", "\72",
1345 "\133", "\135", "\44", };
1346 public static final String
[] lexStateNames
= {
1349 static final long[] jjtoToken
= {
1350 0xfffec3fffffffe01L
, 0xfL
,
1352 static final long[] jjtoSkip
= {
1355 protected SimpleCharStream input_stream
;
1356 private final int[] jjrounds
= new int[54];
1357 private final int[] jjstateSet
= new int[108];
1358 protected char curChar
;
1359 public QueryParserTokenManager(SimpleCharStream stream
){
1360 if (SimpleCharStream
.staticFlag
)
1361 throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
1362 input_stream
= stream
;
1364 public QueryParserTokenManager(SimpleCharStream stream
, int lexState
){
1368 public void ReInit(SimpleCharStream stream
)
1370 jjmatchedPos
= jjnewStateCnt
= 0;
1371 curLexState
= defaultLexState
;
1372 input_stream
= stream
;
1375 private final void ReInitRounds()
1378 jjround
= 0x80000001;
1379 for (i
= 54; i
-- > 0;)
1380 jjrounds
[i
] = 0x80000000;
1382 public void ReInit(SimpleCharStream stream
, int lexState
)
1387 public void SwitchTo(int lexState
)
1389 if (lexState
>= 1 || lexState
< 0)
1390 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState
+ ". State unchanged.", TokenMgrError
.INVALID_LEXICAL_STATE
);
1392 curLexState
= lexState
;
1395 protected Token
jjFillToken()
1397 Token t
= Token
.newToken(jjmatchedKind
);
1398 t
.kind
= jjmatchedKind
;
1399 String im
= jjstrLiteralImages
[jjmatchedKind
];
1400 t
.image
= (im
== null) ? input_stream
.GetImage() : im
;
1401 t
.beginLine
= input_stream
.getBeginLine();
1402 t
.beginColumn
= input_stream
.getBeginColumn();
1403 t
.endLine
= input_stream
.getEndLine();
1404 t
.endColumn
= input_stream
.getEndColumn();
1408 int curLexState
= 0;
1409 int defaultLexState
= 0;
1415 public Token
getNextToken()
1418 Token specialToken
= null;
1427 curChar
= input_stream
.BeginToken();
1429 catch(java
.io
.IOException e
)
1432 matchedToken
= jjFillToken();
1433 return matchedToken
;
1436 try { input_stream
.backup(0);
1437 while (curChar
<= 32 && (0x100002600L
& (1L << curChar
)) != 0L)
1438 curChar
= input_stream
.BeginToken();
1440 catch (java
.io
.IOException e1
) { continue EOFLoop
; }
1441 jjmatchedKind
= 0x7fffffff;
1443 curPos
= jjMoveStringLiteralDfa0_0();
1444 if (jjmatchedKind
!= 0x7fffffff)
1446 if (jjmatchedPos
+ 1 < curPos
)
1447 input_stream
.backup(curPos
- jjmatchedPos
- 1);
1448 if ((jjtoToken
[jjmatchedKind
>> 6] & (1L << (jjmatchedKind
& 077))) != 0L)
1450 matchedToken
= jjFillToken();
1451 return matchedToken
;
1458 int error_line
= input_stream
.getEndLine();
1459 int error_column
= input_stream
.getEndColumn();
1460 String error_after
= null;
1461 boolean EOFSeen
= false;
1462 try { input_stream
.readChar(); input_stream
.backup(1); }
1463 catch (java
.io
.IOException e1
) {
1465 error_after
= curPos
<= 1 ?
"" : input_stream
.GetImage();
1466 if (curChar
== '\n' || curChar
== '\r') {
1474 input_stream
.backup(1);
1475 error_after
= curPos
<= 1 ?
"" : input_stream
.GetImage();
1477 throw new TokenMgrError(EOFSeen
, curLexState
, error_line
, error_column
, error_after
, curChar
, TokenMgrError
.LEXICAL_ERROR
);