/* Generated By:JavaCC: Do not edit this line. UriParserTokenManager.java */ package com.homesnap.webserver.rest.house.parser; /* * #%L * HomeSnapWebServer * %% * Copyright (C) 2011 - 2016 A. de Giuli * %% * This file is part of HomeSnap done by A. de Giuli (arnaud.degiuli(at)free.fr). * * MyDomo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MyDomo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MyDomo. If not, see <http://www.gnu.org/licenses/>. * #L% */ /** Token Manager. */ public class UriParserTokenManager implements UriParserConstants { /** Debug output. */ public java.io.PrintStream debugStream = System.out; /** Set debug output. */ public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } private final int jjStopStringLiteralDfa_0(int pos, long active0) { switch (pos) { case 0: if ((active0 & 0x7f0L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 0; return 2; } return -1; case 1: if ((active0 & 0x7f0L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 1; return 2; } return -1; case 2: if ((active0 & 0x7f0L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 2; return 2; } return -1; case 3: if ((active0 & 0x7f0L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 3; return 2; } return -1; case 4: if ((active0 & 0x60L) != 0L) { if (jjmatchedPos != 4) { jjmatchedKind = 11; jjmatchedPos = 4; } return 2; } if ((active0 & 0x790L) != 0L) return 2; return -1; case 5: if ((active0 & 0x500L) != 0L) return 2; if ((active0 & 0x60L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 5; return 2; } return -1; case 6: if ((active0 & 0x60L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 6; return 2; } return -1; case 7: if ((active0 & 0x60L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 7; return 2; } return -1; case 8: if ((active0 & 0x60L) != 0L) { jjmatchedKind = 11; jjmatchedPos = 8; return 2; } return -1; case 9: if ((active0 & 0x60L) != 0L) return 2; return -1; default : return -1; } } private final int jjStartNfa_0(int pos, long active0) { return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); } private int jjStopAtPos(int pos, int kind) { jjmatchedKind = kind; jjmatchedPos = pos; return pos + 1; } private int jjMoveStringLiteralDfa0_0() { switch(curChar) { case 10: return jjStopAtPos(0, 15); case 38: return jjStopAtPos(0, 20); case 47: return jjStopAtPos(0, 16); case 61: return jjStopAtPos(0, 19); case 63: { jjmatchedKind = 18; jjmatchedPos = 0; } return jjMoveStringLiteralDfa1_0(0x20000L); case 99: return jjMoveStringLiteralDfa1_0(0x60L); case 103: return jjMoveStringLiteralDfa1_0(0x180L); case 104: return jjMoveStringLiteralDfa1_0(0x10L); case 108: return jjMoveStringLiteralDfa1_0(0x600L); default : return jjMoveNfa_0(2, 0); } } private int jjMoveStringLiteralDfa1_0(long active0) { try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0); return 1; } switch(curChar) { case 97: return jjMoveStringLiteralDfa2_0(active0, 0x600L); case 105: return jjMoveStringLiteralDfa2_0(active0, 0x20000L); case 111: return jjMoveStringLiteralDfa2_0(active0, 0x70L); case 114: return jjMoveStringLiteralDfa2_0(active0, 0x180L); default : break; } return jjStartNfa_0(0, active0); } private int jjMoveStringLiteralDfa2_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0); return 2; } switch(curChar) { case 98: return jjMoveStringLiteralDfa3_0(active0, 0x600L); case 100: return jjMoveStringLiteralDfa3_0(active0, 0x20000L); case 110: return jjMoveStringLiteralDfa3_0(active0, 0x60L); case 111: return jjMoveStringLiteralDfa3_0(active0, 0x180L); case 117: return jjMoveStringLiteralDfa3_0(active0, 0x10L); default : break; } return jjStartNfa_0(1, active0); } private int jjMoveStringLiteralDfa3_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0); return 3; } switch(curChar) { case 61: if ((active0 & 0x20000L) != 0L) return jjStopAtPos(3, 17); break; case 101: return jjMoveStringLiteralDfa4_0(active0, 0x600L); case 115: return jjMoveStringLiteralDfa4_0(active0, 0x10L); case 116: return jjMoveStringLiteralDfa4_0(active0, 0x60L); case 117: return jjMoveStringLiteralDfa4_0(active0, 0x180L); default : break; } return jjStartNfa_0(2, active0); } private int jjMoveStringLiteralDfa4_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0); return 4; } switch(curChar) { case 101: if ((active0 & 0x10L) != 0L) return jjStartNfaWithStates_0(4, 4, 2); break; case 108: if ((active0 & 0x200L) != 0L) { jjmatchedKind = 9; jjmatchedPos = 4; } return jjMoveStringLiteralDfa5_0(active0, 0x400L); case 112: if ((active0 & 0x80L) != 0L) { jjmatchedKind = 7; jjmatchedPos = 4; } return jjMoveStringLiteralDfa5_0(active0, 0x100L); case 114: return jjMoveStringLiteralDfa5_0(active0, 0x60L); default : break; } return jjStartNfa_0(3, active0); } private int jjMoveStringLiteralDfa5_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(3, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, active0); return 5; } switch(curChar) { case 111: return jjMoveStringLiteralDfa6_0(active0, 0x60L); case 115: if ((active0 & 0x100L) != 0L) return jjStartNfaWithStates_0(5, 8, 2); else if ((active0 & 0x400L) != 0L) return jjStartNfaWithStates_0(5, 10, 2); break; default : break; } return jjStartNfa_0(4, active0); } private int jjMoveStringLiteralDfa6_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(4, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0); return 6; } switch(curChar) { case 108: return jjMoveStringLiteralDfa7_0(active0, 0x60L); default : break; } return jjStartNfa_0(5, active0); } private int jjMoveStringLiteralDfa7_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(5, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, active0); return 7; } switch(curChar) { case 108: return jjMoveStringLiteralDfa8_0(active0, 0x60L); default : break; } return jjStartNfa_0(6, active0); } private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 101: return jjMoveStringLiteralDfa9_0(active0, 0x60L); default : break; } return jjStartNfa_0(7, active0); } private int jjMoveStringLiteralDfa9_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(7, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, active0); return 9; } switch(curChar) { case 114: if ((active0 & 0x20L) != 0L) { jjmatchedKind = 5; jjmatchedPos = 9; } return jjMoveStringLiteralDfa10_0(active0, 0x40L); default : break; } return jjStartNfa_0(8, active0); } private int jjMoveStringLiteralDfa10_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(8, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(9, active0); return 10; } switch(curChar) { case 115: if ((active0 & 0x40L) != 0L) return jjStartNfaWithStates_0(10, 6, 2); break; default : break; } return jjStartNfa_0(9, active0); } private int jjStartNfaWithStates_0(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1); } static final long[] jjbitVec0 = { 0xfff0000000200002L, 0xffffffffffffdfffL, 0xfffff00f7fffffffL, 0x12000000007fffffL }; static final long[] jjbitVec2 = { 0x0L, 0x0L, 0x420040000000000L, 0xff7fffffff7fffffL }; static final long[] jjbitVec3 = { 0x7fffffffffffffL, 0xffffffffffff0000L, 0xffffffffffffffffL, 0x401f0003ffc3L }; static final long[] jjbitVec4 = { 0x0L, 0x400000000000000L, 0xfffffffbffffd740L, 0xfbfffffffff7fffL }; static final long[] jjbitVec5 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffffffc03L, 0x33fffffffff7fffL }; static final long[] jjbitVec6 = { 0xfffe00000000ffffL, 0xfffffffe027fffffL, 0xffL, 0x707ffffff0000L }; static final long[] jjbitVec7 = { 0x7fffffe00000000L, 0xfffec000000007ffL, 0xffffffffffffffffL, 0x9c00c060002fffffL }; static final long[] jjbitVec8 = { 0xfffffffd0000L, 0xe000L, 0x2003fffffffffL, 0x0L }; static final long[] jjbitVec9 = { 0x23fffffffffffff0L, 0x3ff010000L, 0x23c5fdfffff99fe0L, 0x30003b0000000L }; static final long[] jjbitVec10 = { 0x36dfdfffff987e0L, 0x1c00005e000000L, 0x23edfdfffffbbfe0L, 0x300010000L }; static final long[] jjbitVec11 = { 0x23edfdfffff99fe0L, 0x20003b0000000L, 0x3bfc718d63dc7e8L, 0x0L }; static final long[] jjbitVec12 = { 0x3effdfffffddfe0L, 0x300000000L, 0x23effdfffffddfe0L, 0x340000000L }; static final long[] jjbitVec13 = { 0x3fffdfffffddfe0L, 0x300000000L, 0x2ffbfffffc7fffe0L, 0x7fL }; static final long[] jjbitVec14 = { 0xdfffffffffffeL, 0x7fL, 0x200decaefef02596L, 0x3000005fL }; static final long[] jjbitVec15 = { 0x1L, 0x7fffffffeffL, 0xf00L, 0x0L }; static final long[] jjbitVec16 = { 0x6fbffffffffL, 0x3f0000L, 0xffffffff00000000L, 0x1ffffffffff003fL }; static final long[] jjbitVec17 = { 0xffffffffffffffffL, 0xffffffff83ffffffL, 0xffffff07ffffffffL, 0x3ffffffffffffffL }; static final long[] jjbitVec18 = { 0xffffffffffffff7fL, 0xffffffff3d7f3d7fL, 0x7f3d7fffffff3d7fL, 0xffff7fffff7f7f3dL }; static final long[] jjbitVec19 = { 0xffffffff7f3d7fffL, 0x7ffff7fL, 0xffffffff00000000L, 0x1fffffffffffffL }; static final long[] jjbitVec20 = { 0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL }; static final long[] jjbitVec21 = { 0xffffffffffffffffL, 0x7f9fffffffffffL, 0xffffffff07fffffeL, 0x7ffffffffffL }; static final long[] jjbitVec22 = { 0x3ffff0003dfffL, 0x1dfff0003ffffL, 0xfffffffffffffL, 0x10800000L }; static final long[] jjbitVec23 = { 0xffffffff00000000L, 0xffffffffffffffL, 0x1ffffffffffL, 0x0L }; static final long[] jjbitVec24 = { 0x1fffffffL, 0x1f3fffffff0000L, 0x0L, 0x0L }; static final long[] jjbitVec25 = { 0xffffffffffffffffL, 0xfffffffffffL, 0x0L, 0x0L }; static final long[] jjbitVec26 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffff0fffffffL, 0x3ffffffffffffffL }; static final long[] jjbitVec27 = { 0xffffffff3f3fffffL, 0x3fffffffaaff3f3fL, 0x5fdfffffffffffffL, 0x1fdc1fff0fcf1fdcL }; static final long[] jjbitVec28 = { 0x0L, 0x8002000000000000L, 0x0L, 0x0L }; static final long[] jjbitVec29 = { 0xe3fbbd503e2ffc84L, 0x3e0L, 0x0L, 0x0L }; static final long[] jjbitVec30 = { 0x183e000000000060L, 0xfffffffffffffffeL, 0xfffffffee07fffffL, 0xf7ffffffffffffffL }; static final long[] jjbitVec31 = { 0xfffe1fffffffffe0L, 0xffffffffffffffffL, 0xffffff00007fffL, 0xffff000000000000L }; static final long[] jjbitVec32 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffffffffffL, 0x0L }; static final long[] jjbitVec33 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffffffL, 0x0L }; static final long[] jjbitVec34 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0x1fffL, 0x0L }; static final long[] jjbitVec35 = { 0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffL, 0x0L }; static final long[] jjbitVec36 = { 0xffff3fffffffffffL, 0x7ffffffffffL, 0x0L, 0x0L }; static final long[] jjbitVec37 = { 0x5f7ffdffa0f8007fL, 0xffffffffffffffdbL, 0x3ffffffffffffL, 0xfffffffffff80000L }; static final long[] jjbitVec38 = { 0x3fffffffffffffffL, 0xffffffffffff0000L, 0xfffffffffffcffffL, 0xfff0000000000ffL }; static final long[] jjbitVec39 = { 0x0L, 0xffdf000000000000L, 0xffffffffffffffffL, 0x1fffffffffffffffL }; static final long[] jjbitVec40 = { 0x7fffffe00000000L, 0xffffffc007fffffeL, 0x7fffffffffffffffL, 0x1cfcfcfcL }; static final long[] jjbitVec41 = { 0x7fffffe00000000L, 0xfffec3ff000007ffL, 0xffffffffffffffffL, 0x9fffc060002fffffL }; static final long[] jjbitVec42 = { 0x23fffffffffffff0L, 0xffc3ff010000L, 0x23c5fdfffff99fe0L, 0x3ffc3b0000000L }; static final long[] jjbitVec43 = { 0x36dfdfffff987e0L, 0x1cffc05e000000L, 0x23edfdfffffbbfe0L, 0xffc300010000L }; static final long[] jjbitVec44 = { 0x23edfdfffff99fe0L, 0x2ffc3b0000000L, 0x3bfc718d63dc7e8L, 0xff8000000000L }; static final long[] jjbitVec45 = { 0x3effdfffffddfe0L, 0xffc300000000L, 0x23effdfffffddfe0L, 0xffc340000000L }; static final long[] jjbitVec46 = { 0x3fffdfffffddfe0L, 0xffc300000000L, 0x2ffbfffffc7fffe0L, 0x7fL }; static final long[] jjbitVec47 = { 0xdfffffffffffeL, 0x3ff007fL, 0x200decaefef02596L, 0x33ff005fL }; static final long[] jjbitVec48 = { 0x3ff00000001L, 0x7fffffffeffL, 0xf00L, 0x0L }; static final long[] jjbitVec49 = { 0x6fbffffffffL, 0x3f03ffL, 0xffffffff00000000L, 0x1ffffffffff003fL }; static final long[] jjbitVec50 = { 0xffffffff7f3d7fffL, 0x3fe0007ffff7fL, 0xffffffff00000000L, 0x1fffffffffffffL }; static final long[] jjbitVec51 = { 0x3ffff0003dfffL, 0x1dfff0003ffffL, 0xfffffffffffffL, 0x3ff10800000L }; static final long[] jjbitVec52 = { 0xffffffff03ff0000L, 0xffffffffffffffL, 0x1ffffffffffL, 0x0L }; static final long[] jjbitVec53 = { 0x1fffffffL, 0x1f3fffffffffc0L, 0x0L, 0x0L }; static final long[] jjbitVec54 = { 0x7fffffe03ff0000L, 0xffffffc007fffffeL, 0x7fffffffffffffffL, 0x1cfcfcfcL }; private int jjMoveNfa_0(int startState, int curPos) { int startsAt = 0; jjnewStateCnt = 2; int i = 1; jjstateSet[0] = startState; int kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; do { switch(jjstateSet[--i]) { case 2: case 1: if ((0x3ff000000000000L & l) == 0L) break; kind = 12; jjCheckNAdd(1); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); do { switch(jjstateSet[--i]) { case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 12) kind = 12; jjCheckNAdd(1); } if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } break; case 0: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 1: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 12) kind = 12; jjCheckNAdd(1); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 11) kind = 11; jjCheckNAdd(0); } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) { if (kind > 12) kind = 12; jjCheckNAdd(1); } break; case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 1: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 12) kind = 12; jjCheckNAdd(1); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 2 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } } } static final int[] jjnextStates = { }; private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2) { switch(hiByte) { case 0: return ((jjbitVec2[i2] & l2) != 0L); case 2: return ((jjbitVec3[i2] & l2) != 0L); case 3: return ((jjbitVec4[i2] & l2) != 0L); case 4: return ((jjbitVec5[i2] & l2) != 0L); case 5: return ((jjbitVec6[i2] & l2) != 0L); case 6: return ((jjbitVec7[i2] & l2) != 0L); case 7: return ((jjbitVec8[i2] & l2) != 0L); case 9: return ((jjbitVec9[i2] & l2) != 0L); case 10: return ((jjbitVec10[i2] & l2) != 0L); case 11: return ((jjbitVec11[i2] & l2) != 0L); case 12: return ((jjbitVec12[i2] & l2) != 0L); case 13: return ((jjbitVec13[i2] & l2) != 0L); case 14: return ((jjbitVec14[i2] & l2) != 0L); case 15: return ((jjbitVec15[i2] & l2) != 0L); case 16: return ((jjbitVec16[i2] & l2) != 0L); case 17: return ((jjbitVec17[i2] & l2) != 0L); case 18: return ((jjbitVec18[i2] & l2) != 0L); case 19: return ((jjbitVec19[i2] & l2) != 0L); case 20: return ((jjbitVec20[i2] & l2) != 0L); case 22: return ((jjbitVec21[i2] & l2) != 0L); case 23: return ((jjbitVec22[i2] & l2) != 0L); case 24: return ((jjbitVec23[i2] & l2) != 0L); case 25: return ((jjbitVec24[i2] & l2) != 0L); case 29: return ((jjbitVec25[i2] & l2) != 0L); case 30: return ((jjbitVec26[i2] & l2) != 0L); case 31: return ((jjbitVec27[i2] & l2) != 0L); case 32: return ((jjbitVec28[i2] & l2) != 0L); case 33: return ((jjbitVec29[i2] & l2) != 0L); case 48: return ((jjbitVec30[i2] & l2) != 0L); case 49: return ((jjbitVec31[i2] & l2) != 0L); case 77: return ((jjbitVec32[i2] & l2) != 0L); case 159: return ((jjbitVec33[i2] & l2) != 0L); case 164: return ((jjbitVec34[i2] & l2) != 0L); case 215: return ((jjbitVec35[i2] & l2) != 0L); case 250: return ((jjbitVec36[i2] & l2) != 0L); case 251: return ((jjbitVec37[i2] & l2) != 0L); case 253: return ((jjbitVec38[i2] & l2) != 0L); case 254: return ((jjbitVec39[i2] & l2) != 0L); case 255: return ((jjbitVec40[i2] & l2) != 0L); default : if ((jjbitVec0[i1] & l1) != 0L) return true; return false; } } private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2) { switch(hiByte) { case 0: return ((jjbitVec2[i2] & l2) != 0L); case 2: return ((jjbitVec3[i2] & l2) != 0L); case 3: return ((jjbitVec4[i2] & l2) != 0L); case 4: return ((jjbitVec5[i2] & l2) != 0L); case 5: return ((jjbitVec6[i2] & l2) != 0L); case 6: return ((jjbitVec41[i2] & l2) != 0L); case 7: return ((jjbitVec8[i2] & l2) != 0L); case 9: return ((jjbitVec42[i2] & l2) != 0L); case 10: return ((jjbitVec43[i2] & l2) != 0L); case 11: return ((jjbitVec44[i2] & l2) != 0L); case 12: return ((jjbitVec45[i2] & l2) != 0L); case 13: return ((jjbitVec46[i2] & l2) != 0L); case 14: return ((jjbitVec47[i2] & l2) != 0L); case 15: return ((jjbitVec48[i2] & l2) != 0L); case 16: return ((jjbitVec49[i2] & l2) != 0L); case 17: return ((jjbitVec17[i2] & l2) != 0L); case 18: return ((jjbitVec18[i2] & l2) != 0L); case 19: return ((jjbitVec50[i2] & l2) != 0L); case 20: return ((jjbitVec20[i2] & l2) != 0L); case 22: return ((jjbitVec21[i2] & l2) != 0L); case 23: return ((jjbitVec51[i2] & l2) != 0L); case 24: return ((jjbitVec52[i2] & l2) != 0L); case 25: return ((jjbitVec53[i2] & l2) != 0L); case 29: return ((jjbitVec25[i2] & l2) != 0L); case 30: return ((jjbitVec26[i2] & l2) != 0L); case 31: return ((jjbitVec27[i2] & l2) != 0L); case 32: return ((jjbitVec28[i2] & l2) != 0L); case 33: return ((jjbitVec29[i2] & l2) != 0L); case 48: return ((jjbitVec30[i2] & l2) != 0L); case 49: return ((jjbitVec31[i2] & l2) != 0L); case 77: return ((jjbitVec32[i2] & l2) != 0L); case 159: return ((jjbitVec33[i2] & l2) != 0L); case 164: return ((jjbitVec34[i2] & l2) != 0L); case 215: return ((jjbitVec35[i2] & l2) != 0L); case 250: return ((jjbitVec36[i2] & l2) != 0L); case 251: return ((jjbitVec37[i2] & l2) != 0L); case 253: return ((jjbitVec38[i2] & l2) != 0L); case 254: return ((jjbitVec39[i2] & l2) != 0L); case 255: return ((jjbitVec54[i2] & l2) != 0L); default : if ((jjbitVec0[i1] & l1) != 0L) return true; return false; } } /** Token literal values. */ public static final String[] jjstrLiteralImages = { "", null, null, null, "\150\157\165\163\145", "\143\157\156\164\162\157\154\154\145\162", "\143\157\156\164\162\157\154\154\145\162\163", "\147\162\157\165\160", "\147\162\157\165\160\163", "\154\141\142\145\154", "\154\141\142\145\154\163", null, null, null, null, "\12", "\57", "\77\151\144\75", "\77", "\75", "\46", }; /** Lexer state names. */ public static final String[] lexStateNames = { "DEFAULT", }; static final long[] jjtoToken = { 0x1f9ff1L, }; static final long[] jjtoSkip = { 0xeL, }; protected SimpleCharStream input_stream; private final int[] jjrounds = new int[2]; private final int[] jjstateSet = new int[4]; private final StringBuilder jjimage = new StringBuilder(); private StringBuilder image = jjimage; protected char curChar; /** Constructor. */ public UriParserTokenManager(SimpleCharStream stream){ if (SimpleCharStream.staticFlag) throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); input_stream = stream; } /** Constructor. */ public UriParserTokenManager(SimpleCharStream stream, int lexState){ this(stream); SwitchTo(lexState); } /** Reinitialise parser. */ public void ReInit(SimpleCharStream stream) { jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds(); } private void ReInitRounds() { int i; jjround = 0x80000001; for (i = 2; i-- > 0;) jjrounds[i] = 0x80000000; } /** Reinitialise parser. */ public void ReInit(SimpleCharStream stream, int lexState) { ReInit(stream); SwitchTo(lexState); } /** Switch to specified lex state. */ public void SwitchTo(int lexState) { if (lexState >= 1 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; } protected Token jjFillToken() { final Token t; final String curTokenImage; final int beginLine; final int endLine; final int beginColumn; final int endColumn; if (jjmatchedPos < 0) { if (image == null) curTokenImage = ""; else curTokenImage = image.toString(); beginLine = endLine = input_stream.getBeginLine(); beginColumn = endColumn = input_stream.getBeginColumn(); } else { String im = jjstrLiteralImages[jjmatchedKind]; curTokenImage = (im == null) ? input_stream.GetImage() : im; beginLine = input_stream.getBeginLine(); beginColumn = input_stream.getBeginColumn(); endLine = input_stream.getEndLine(); endColumn = input_stream.getEndColumn(); } t = Token.newToken(jjmatchedKind, curTokenImage); t.beginLine = beginLine; t.endLine = endLine; t.beginColumn = beginColumn; t.endColumn = endColumn; return t; } int curLexState = 0; int defaultLexState = 0; int jjnewStateCnt; int jjround; int jjmatchedPos; int jjmatchedKind; /** Get the next Token. */ public Token getNextToken() { Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; } image = jjimage; image.setLength(0); try { input_stream.backup(0); while (curChar <= 32 && (0x100002200L & (1L << curChar)) != 0L) curChar = input_stream.BeginToken(); } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 11; jjmatchedPos = -1; curPos = 0; curPos = jjMoveStringLiteralDfa0_0(); if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); TokenLexicalActions(matchedToken); return matchedToken; } else { continue EOFLoop; } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } } int[] jjemptyLineNo = new int[1]; int[] jjemptyColNo = new int[1]; boolean[] jjbeenHere = new boolean[1]; void TokenLexicalActions(Token matchedToken) { switch(jjmatchedKind) { case 0 : break; case 4 : break; case 5 : break; case 6 : break; case 7 : break; case 8 : break; case 9 : break; case 10 : break; case 11 : if (jjmatchedPos == -1) { if (jjbeenHere[0] && jjemptyLineNo[0] == input_stream.getBeginLine() && jjemptyColNo[0] == input_stream.getBeginColumn()) throw new TokenMgrError(("Error: Bailing out of infinite loop caused by repeated empty string matches at line " + input_stream.getBeginLine() + ", column " + input_stream.getBeginColumn() + "."), TokenMgrError.LOOP_DETECTED); jjemptyLineNo[0] = input_stream.getBeginLine(); jjemptyColNo[0] = input_stream.getBeginColumn(); jjbeenHere[0] = true; } break; case 12 : break; case 15 : break; case 16 : break; case 17 : break; case 18 : break; case 19 : break; case 20 : break; default : break; } } private void jjCheckNAdd(int state) { if (jjrounds[state] != jjround) { jjstateSet[jjnewStateCnt++] = state; jjrounds[state] = jjround; } } }