liquibase.util.grammar.SimpleSqlGrammarTokenManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
/* SimpleSqlGrammarTokenManager.java */
/* Generated By:JavaCC: Do not edit this line. SimpleSqlGrammarTokenManager.java */
package liquibase.util.grammar;
/** Token Manager. */
public class SimpleSqlGrammarTokenManager implements SimpleSqlGrammarConstants {
/** Debug output. */
public java.io.PrintStream debugStream = System.out;
/** Set debug output. */
public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private int jjMoveStringLiteralDfa0_0()
{
return jjMoveNfa_0(3, 0);
}
static final long[] jjbitVec0 = {
0x0L, 0x0L, 0x100000020L, 0x0L
};
static final long[] jjbitVec1 = {
0x0L, 0x0L, 0x1L, 0x0L
};
static final long[] jjbitVec2 = {
0x4000L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec3 = {
0x830000003fffL, 0x180000000L, 0x0L, 0x0L
};
static final long[] jjbitVec4 = {
0x1L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec5 = {
0x0L, 0x0L, 0x0L, 0x8000000000000000L
};
static final long[] jjbitVec6 = {
0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec8 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec9 = {
0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x7fffffffffffffffL
};
static final long[] jjbitVec10 = {
0x0L, 0x0L, 0xfffffffe00000000L, 0xffffffffffffffffL
};
static final long[] jjbitVec11 = {
0xffffffffffffffffL, 0x3fffffffffL, 0x0L, 0x0L
};
static final long[] jjbitVec12 = {
0xfff0000040220002L, 0xffffffffffffdfffL, 0xfffff02f7fffffffL, 0x12000000007fffffL
};
static final long[] jjbitVec13 = {
0x0L, 0x0L, 0x0L, 0xffffffffff7fffffL
};
static final long[] jjbitVec14 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x501f0003ffc3L
};
static final long[] jjbitVec15 = {
0x0L, 0xbcdf000000000000L, 0xfffffffbffffd740L, 0xffbfffffffffffffL
};
static final long[] jjbitVec16 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xfffffffffffffc03L, 0xffffffffffffffffL
};
static final long[] jjbitVec17 = {
0xfffeffffffffffffL, 0xfffffffe027fffffL, 0xffL, 0x707ffffff0000L
};
static final long[] jjbitVec18 = {
0xffffffff00000000L, 0xfffec000000007ffL, 0xffffffffffffffffL, 0x9c00c060002fffffL
};
static final long[] jjbitVec19 = {
0xfffffffd0000L, 0xffffffffffffe000L, 0x2003fffffffffL, 0x43007fffffffc00L
};
static final long[] jjbitVec20 = {
0x110043fffffL, 0x1ffffffL, 0x1fffff00000000L, 0x0L
};
static final long[] jjbitVec21 = {
0x23fffffffffffff0L, 0xfffe0003ff010000L, 0x23c5fdfffff99fe1L, 0x30003b0004000L
};
static final long[] jjbitVec22 = {
0x36dfdfffff987e0L, 0x1c00005e000000L, 0x23edfdfffffbbfe0L, 0x200000300010000L
};
static final long[] jjbitVec23 = {
0x23edfdfffff99fe0L, 0x20003b0000000L, 0x3ffc718d63dc7e8L, 0x10000L
};
static final long[] jjbitVec24 = {
0x23fffdfffffddfe0L, 0x307000000L, 0x23effdfffffddfe0L, 0x6000340000000L
};
static final long[] jjbitVec25 = {
0x27fffffffffddfe0L, 0xfc00000380004000L, 0x2ffbfffffc7fffe0L, 0x7fL
};
static final long[] jjbitVec26 = {
0xdfffffffffffeL, 0x7fL, 0x200decaefef02596L, 0xf000005fL
};
static final long[] jjbitVec27 = {
0x1L, 0x1ffffffffeffL, 0x1f00L, 0x0L
};
static final long[] jjbitVec28 = {
0x800007ffffffffffL, 0xffe1c0623c3f0000L, 0xffffffff00004003L, 0xf7ffffffffff20bfL
};
static final long[] jjbitVec29 = {
0xffffffffffffffffL, 0xffffffff3d7f3dffL, 0x7f3dffffffff3dffL, 0xffffffffff7fff3dL
};
static final long[] jjbitVec30 = {
0xffffffffff3dffffL, 0x7ffffffL, 0xffffffff0000ffffL, 0x3f3fffffffffffffL
};
static final long[] jjbitVec31 = {
0xffffffffffffffffL, 0xffff9fffffffffffL, 0xffffffff07fffffeL, 0x1fe07ffffffffffL
};
static final long[] jjbitVec32 = {
0x3ffff0003dfffL, 0x1dfff0003ffffL, 0xfffffffffffffL, 0x10800000L
};
static final long[] jjbitVec33 = {
0xffffffff00000000L, 0xffffffffffffffL, 0xffff05ffffffffffL, 0x3fffffffffffffL
};
static final long[] jjbitVec34 = {
0x7fffffffL, 0x1f3fffffff0000L, 0xffff0fffffffffffL, 0x3ffL
};
static final long[] jjbitVec35 = {
0xffffffff007fffffL, 0x1fffffL, 0x8000000000L, 0x0L
};
static final long[] jjbitVec36 = {
0xfffffffffffe0L, 0xfe0L, 0xfc00c001fffffff8L, 0x3fffffffffL
};
static final long[] jjbitVec37 = {
0xfffffffffL, 0x3ffffffffc00e000L, 0x0L, 0x63de0000000000L
};
static final long[] jjbitVec38 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L
};
static final long[] jjbitVec39 = {
0xffffffff3f3fffffL, 0x3fffffffaaff3f3fL, 0x5fdfffffffffffffL, 0x1fdc1fff0fcf1fdcL
};
static final long[] jjbitVec40 = {
0x0L, 0x8002000000000000L, 0x1fff0000L, 0x0L
};
static final long[] jjbitVec41 = {
0xf3ffbd503e6ffc84L, 0xffffffff000043e0L, 0x18L, 0x0L
};
static final long[] jjbitVec42 = {
0xffff7fffffffffffL, 0xffffffff7fffffffL, 0xffffffffffffffffL, 0xc781fffffffffL
};
static final long[] jjbitVec43 = {
0xffff20bfffffffffL, 0x80ffffffffffL, 0x7f7f7f7f007fffffL, 0x7f7f7f7fL
};
static final long[] jjbitVec44 = {
0x800000000000L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec45 = {
0xffffffffffffffffL, 0xfffffffffffffffeL, 0xfffffffee07fffffL, 0xf7ffffffffffffffL
};
static final long[] jjbitVec46 = {
0xfffe3fffffffffe0L, 0xffffffffffffffffL, 0x7ffffff00007fffL, 0xffff000000000000L
};
static final long[] jjbitVec47 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffffffffffL, 0x0L
};
static final long[] jjbitVec48 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x3fffffL
};
static final long[] jjbitVec49 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0x1fffL, 0x3fffffffffff0000L
};
static final long[] jjbitVec50 = {
0xc00ffff1fffL, 0x80007fffffffffffL, 0xffffffff3fffffffL, 0x3fffffffffL
};
static final long[] jjbitVec51 = {
0xfffffffcff800000L, 0xffffffffffffffffL, 0xff3ffffffff9ffL, 0xff80000000000000L
};
static final long[] jjbitVec52 = {
0x7fffff7bbL, 0xfffffffffffffL, 0xffffffffffffcL, 0x28fc000000000000L
};
static final long[] jjbitVec53 = {
0xffff003ffffffc00L, 0x1fffffff0000007fL, 0x7fffffffffff0L, 0x7c00ffdf00008000L
};
static final long[] jjbitVec54 = {
0x1ffffffffffL, 0xc47fffff00000ff7L, 0x3e62ffffffffffffL, 0x1c07ff38000005L
};
static final long[] jjbitVec55 = {
0xffff7f7f007e7e7eL, 0xffff003ff7ffffffL, 0xffffffffffffffffL, 0x7ffffffffL
};
static final long[] jjbitVec56 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffff000fffffffffL, 0xffffffffffff87fL
};
static final long[] jjbitVec57 = {
0xffffffffffffffffL, 0xffff3fffffffffffL, 0xffffffffffffffffL, 0x3ffffffL
};
static final long[] jjbitVec58 = {
0x5f7ffdffa0f8007fL, 0xffffffffffffffdbL, 0x3ffffffffffffL, 0xfffffffffff80000L
};
static final long[] jjbitVec59 = {
0x3fffffffffffffffL, 0xffffffffffff0000L, 0xfffffffffffcffffL, 0xfff0000000000ffL
};
static final long[] jjbitVec60 = {
0x0L, 0xffdf000000000000L, 0xffffffffffffffffL, 0x1fffffffffffffffL
};
static final long[] jjbitVec61 = {
0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffL
};
private int jjMoveNfa_0(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 91;
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 3:
if ((0xfc00fffe00000000L & l) != 0L)
{
if (kind > 20)
kind = 20;
}
else if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 5)
kind = 5;
{ jjCheckNAddStates(0, 6); }
}
else if ((0x100002600L & l) != 0L)
{
if (kind > 1)
kind = 1;
{ jjCheckNAdd(0); }
}
if ((0x1800000000L & l) != 0L)
{
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
}
else if (curChar == 34)
{ jjCheckNAddStates(11, 18); }
else if (curChar == 39)
{ jjCheckNAddStates(19, 23); }
else if (curChar == 46)
{ jjCheckNAdd(12); }
else if (curChar == 47)
jjstateSet[jjnewStateCnt++] = 4;
else if (curChar == 45)
jjstateSet[jjnewStateCnt++] = 1;
break;
case 0:
if ((0x100002600L & l) == 0L)
break;
if (kind > 1)
kind = 1;
{ jjCheckNAdd(0); }
break;
case 1:
if (curChar != 45)
break;
if (kind > 2)
kind = 2;
{ jjCheckNAdd(2); }
break;
case 2:
if ((0xffffffffffffdbffL & l) == 0L)
break;
if (kind > 2)
kind = 2;
{ jjCheckNAdd(2); }
break;
case 4:
if (curChar == 42)
{ jjCheckNAddTwoStates(5, 6); }
break;
case 5:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(5, 6); }
break;
case 6:
if (curChar == 42)
{ jjCheckNAddStates(24, 26); }
break;
case 7:
if ((0xffff7bffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(8, 6); }
break;
case 8:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(8, 6); }
break;
case 9:
if (curChar == 47 && kind > 3)
kind = 3;
break;
case 10:
if (curChar == 47)
jjstateSet[jjnewStateCnt++] = 4;
break;
case 11:
if (curChar == 46)
{ jjCheckNAdd(12); }
break;
case 12:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
{ jjCheckNAddTwoStates(12, 13); }
break;
case 14:
if ((0x280000000000L & l) != 0L)
{ jjCheckNAdd(15); }
break;
case 15:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
{ jjCheckNAdd(15); }
break;
case 17:
case 18:
if (curChar == 39)
{ jjCheckNAddStates(19, 23); }
break;
case 19:
if (curChar == 39)
jjstateSet[jjnewStateCnt++] = 18;
break;
case 21:
{ jjCheckNAddStates(19, 23); }
break;
case 22:
if ((0xffffff7fffffffffL & l) != 0L)
{ jjCheckNAddStates(19, 23); }
break;
case 23:
case 24:
if (curChar == 39 && kind > 16)
kind = 16;
break;
case 26:
case 27:
if (curChar == 34)
{ jjCheckNAddStates(27, 31); }
break;
case 28:
if (curChar == 34)
jjstateSet[jjnewStateCnt++] = 27;
break;
case 30:
{ jjCheckNAddStates(27, 31); }
break;
case 31:
if ((0xfffffffbffffffffL & l) != 0L)
{ jjCheckNAddStates(27, 31); }
break;
case 32:
case 33:
if (curChar == 34 && kind > 16)
kind = 16;
break;
case 37:
if (curChar == 56)
{ jjAddStates(32, 33); }
break;
case 42:
if ((0xfc00fffe00000000L & l) != 0L && kind > 20)
kind = 20;
break;
case 43:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 5)
kind = 5;
{ jjCheckNAddStates(0, 6); }
break;
case 44:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(44, 11); }
break;
case 45:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(45, 46); }
break;
case 46:
if (curChar != 46)
break;
if (kind > 4)
kind = 4;
jjstateSet[jjnewStateCnt++] = 47;
break;
case 48:
if ((0x280000000000L & l) != 0L)
{ jjCheckNAdd(49); }
break;
case 49:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
{ jjCheckNAdd(49); }
break;
case 50:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(50, 51); }
break;
case 52:
if ((0x280000000000L & l) != 0L)
{ jjCheckNAdd(53); }
break;
case 53:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 4)
kind = 4;
{ jjCheckNAdd(53); }
break;
case 54:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 5)
kind = 5;
{ jjCheckNAdd(54); }
break;
case 55:
if ((0x1800000000L & l) == 0L)
break;
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
break;
case 56:
if ((0x3ff001800000000L & l) != 0L)
{ jjCheckNAddStates(34, 36); }
break;
case 57:
if ((0x100002400L & l) != 0L)
{ jjCheckNAddTwoStates(57, 58); }
break;
case 58:
if (curChar == 46)
{ jjCheckNAddStates(37, 41); }
break;
case 59:
if ((0x100002400L & l) != 0L)
{ jjCheckNAddStates(37, 41); }
break;
case 60:
if ((0x1800000000L & l) == 0L)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddStates(42, 44); }
break;
case 61:
if ((0x3ff001800000000L & l) == 0L)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddStates(42, 44); }
break;
case 63:
if ((0xfc00ffffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(64, 65); }
break;
case 64:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(64, 65); }
break;
case 67:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjAddStates(45, 46); }
break;
case 69:
if (curChar == 34)
{ jjCheckNAdd(70); }
break;
case 70:
if ((0xfffffffbffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(70, 71); }
break;
case 71:
if (curChar != 34)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddTwoStates(57, 58); }
break;
case 72:
if ((0x3ff001800000000L & l) == 0L)
break;
if (kind > 8)
kind = 8;
{ jjCheckNAdd(72); }
break;
case 74:
if ((0xfc00ffffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(75, 76); }
break;
case 75:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(75, 76); }
break;
case 77:
if ((0xfc00ffffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(78, 79); }
break;
case 78:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(78, 79); }
break;
case 81:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjAddStates(47, 48); }
break;
case 83:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjAddStates(49, 50); }
break;
case 85:
if (curChar == 34)
{ jjCheckNAddStates(11, 18); }
break;
case 86:
if ((0xfffffffbffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(86, 87); }
break;
case 87:
if (curChar == 34)
{ jjCheckNAddTwoStates(57, 58); }
break;
case 88:
if ((0xfffffffbffffdbffL & l) != 0L)
{ jjCheckNAddTwoStates(88, 89); }
break;
case 89:
if (curChar == 34 && kind > 17)
kind = 17;
break;
case 90:
if (curChar == 34 && kind > 18)
kind = 18;
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 3:
if ((0x7fffffe87ffffffL & l) != 0L)
{
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
}
else if (curChar == 96)
{ jjCheckNAddTwoStates(81, 83); }
else if (curChar == 91)
{ jjAddStates(51, 52); }
if ((0x78000201f8080201L & l) != 0L)
{
if (kind > 20)
kind = 20;
}
else if ((0x24402400244024L & l) != 0L)
{ jjCheckNAddTwoStates(17, 26); }
if ((0x4000000040000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 35;
else if (curChar == 95)
jjstateSet[jjnewStateCnt++] = 40;
break;
case 2:
if (kind > 2)
kind = 2;
jjstateSet[jjnewStateCnt++] = 2;
break;
case 5:
{ jjCheckNAddTwoStates(5, 6); }
break;
case 7:
case 8:
{ jjCheckNAddTwoStates(8, 6); }
break;
case 13:
if ((0x2000000020L & l) != 0L)
{ jjAddStates(53, 54); }
break;
case 16:
if ((0x24402400244024L & l) != 0L)
{ jjCheckNAddTwoStates(17, 26); }
break;
case 20:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 21;
break;
case 21:
{ jjCheckNAddStates(19, 23); }
break;
case 22:
if ((0xffffffffefffffffL & l) != 0L)
{ jjCheckNAddStates(19, 23); }
break;
case 25:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 24;
break;
case 29:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 30;
break;
case 30:
{ jjCheckNAddStates(27, 31); }
break;
case 31:
if ((0xffffffffefffffffL & l) != 0L)
{ jjCheckNAddStates(27, 31); }
break;
case 34:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 33;
break;
case 35:
if ((0x400000004L & l) != 0L)
{ jjCheckNAddTwoStates(17, 26); }
break;
case 36:
if ((0x4000000040000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 35;
break;
case 38:
if ((0x4000000040L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 37;
break;
case 39:
if ((0x10000000100000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 38;
break;
case 40:
if ((0x20000000200000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 39;
break;
case 41:
if (curChar == 95)
jjstateSet[jjnewStateCnt++] = 40;
break;
case 42:
if ((0x78000201f8080201L & l) != 0L && kind > 20)
kind = 20;
break;
case 47:
if ((0x2000000020L & l) != 0L)
{ jjAddStates(55, 56); }
break;
case 51:
if ((0x2000000020L & l) != 0L)
{ jjAddStates(57, 58); }
break;
case 55:
if ((0x7fffffe87ffffffL & l) == 0L)
break;
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
break;
case 56:
if ((0x7fffffe87ffffffL & l) != 0L)
{ jjCheckNAddStates(34, 36); }
break;
case 60:
case 61:
if ((0x7fffffe87ffffffL & l) == 0L)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddStates(42, 44); }
break;
case 62:
if (curChar == 91)
jjstateSet[jjnewStateCnt++] = 63;
break;
case 63:
case 64:
if ((0xffffffffdfffffffL & l) != 0L)
{ jjCheckNAddTwoStates(64, 65); }
break;
case 65:
if (curChar != 93)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddTwoStates(57, 58); }
break;
case 66:
if (curChar == 96)
{ jjCheckNAdd(67); }
break;
case 67:
if ((0xfffffffeffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(67, 68); }
break;
case 68:
if (curChar != 96)
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddTwoStates(57, 58); }
break;
case 70:
{ jjAddStates(59, 60); }
break;
case 72:
if ((0x7fffffe87ffffffL & l) == 0L)
break;
if (kind > 8)
kind = 8;
{ jjCheckNAdd(72); }
break;
case 73:
if (curChar == 91)
{ jjAddStates(51, 52); }
break;
case 74:
case 75:
if ((0xffffffffdfffffffL & l) != 0L)
{ jjCheckNAddTwoStates(75, 76); }
break;
case 76:
if (curChar == 93)
{ jjCheckNAddTwoStates(57, 58); }
break;
case 77:
case 78:
if ((0xffffffffdfffffffL & l) != 0L)
{ jjCheckNAddTwoStates(78, 79); }
break;
case 79:
if (curChar == 93 && kind > 17)
kind = 17;
break;
case 80:
if (curChar == 96)
{ jjCheckNAddTwoStates(81, 83); }
break;
case 81:
if ((0xfffffffeffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(81, 82); }
break;
case 82:
if (curChar == 96)
{ jjCheckNAddTwoStates(57, 58); }
break;
case 83:
if ((0xfffffffeffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(83, 84); }
break;
case 84:
if (curChar == 96 && kind > 17)
kind = 17;
break;
case 86:
{ jjAddStates(61, 62); }
break;
case 88:
{ jjAddStates(63, 64); }
break;
default : break;
}
} while(i != startsAt);
}
else
{
int hiByte = (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 3:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
{
if (kind > 1)
kind = 1;
{ jjCheckNAdd(0); }
}
if (jjCanMove_2(hiByte, i1, i2, l1, l2))
{
if (kind > 20)
kind = 20;
}
if (jjCanMove_3(hiByte, i1, i2, l1, l2))
{
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
}
break;
case 0:
if (!jjCanMove_0(hiByte, i1, i2, l1, l2))
break;
if (kind > 1)
kind = 1;
{ jjCheckNAdd(0); }
break;
case 2:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 2)
kind = 2;
jjstateSet[jjnewStateCnt++] = 2;
break;
case 5:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddTwoStates(5, 6); }
break;
case 7:
case 8:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddTwoStates(8, 6); }
break;
case 21:
case 22:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddStates(19, 23); }
break;
case 30:
case 31:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddStates(27, 31); }
break;
case 42:
if (jjCanMove_2(hiByte, i1, i2, l1, l2) && kind > 20)
kind = 20;
break;
case 55:
if (!jjCanMove_3(hiByte, i1, i2, l1, l2))
break;
if (kind > 8)
kind = 8;
{ jjCheckNAddStates(7, 10); }
break;
case 56:
if (jjCanMove_3(hiByte, i1, i2, l1, l2))
{ jjCheckNAddStates(34, 36); }
break;
case 60:
case 61:
if (!jjCanMove_3(hiByte, i1, i2, l1, l2))
break;
if (kind > 7)
kind = 7;
{ jjCheckNAddStates(42, 44); }
break;
case 63:
case 64:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddTwoStates(64, 65); }
break;
case 67:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(45, 46); }
break;
case 70:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(59, 60); }
break;
case 72:
if (!jjCanMove_3(hiByte, i1, i2, l1, l2))
break;
if (kind > 8)
kind = 8;
{ jjCheckNAdd(72); }
break;
case 74:
case 75:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddTwoStates(75, 76); }
break;
case 77:
case 78:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjCheckNAddTwoStates(78, 79); }
break;
case 81:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(47, 48); }
break;
case 83:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(49, 50); }
break;
case 86:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(61, 62); }
break;
case 88:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
{ jjAddStates(63, 64); }
break;
default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0) break; else break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 91 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
/** Token literal values. */
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, };
protected Token jjFillToken()
{
final Token t;
final String curTokenImage;
final int beginLine;
final int endLine;
final int beginColumn;
final int endColumn;
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;
}
static final int[] jjnextStates = {
44, 11, 45, 46, 50, 51, 54, 56, 57, 58, 72, 86, 28, 29, 31, 32,
34, 88, 90, 19, 20, 22, 23, 25, 6, 7, 9, 28, 29, 31, 32, 34,
17, 26, 56, 57, 58, 59, 60, 62, 66, 69, 57, 58, 61, 67, 68, 81,
82, 83, 84, 74, 77, 14, 15, 48, 49, 52, 53, 70, 71, 86, 87, 88,
89,
};
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec0[i2] & l2) != 0L);
case 22:
return ((jjbitVec1[i2] & l2) != 0L);
case 24:
return ((jjbitVec2[i2] & l2) != 0L);
case 32:
return ((jjbitVec3[i2] & l2) != 0L);
case 48:
return ((jjbitVec4[i2] & l2) != 0L);
case 254:
return ((jjbitVec5[i2] & l2) != 0L);
default :
return false;
}
}
private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec8[i2] & l2) != 0L);
default :
if ((jjbitVec6[i1] & l1) != 0L)
return true;
return false;
}
}
private static final boolean jjCanMove_2(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec10[i2] & l2) != 0L);
case 255:
return ((jjbitVec11[i2] & l2) != 0L);
default :
if ((jjbitVec9[i1] & l1) != 0L)
return true;
return false;
}
}
private static final boolean jjCanMove_3(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec13[i2] & l2) != 0L);
case 2:
return ((jjbitVec14[i2] & l2) != 0L);
case 3:
return ((jjbitVec15[i2] & l2) != 0L);
case 4:
return ((jjbitVec16[i2] & l2) != 0L);
case 5:
return ((jjbitVec17[i2] & l2) != 0L);
case 6:
return ((jjbitVec18[i2] & l2) != 0L);
case 7:
return ((jjbitVec19[i2] & l2) != 0L);
case 8:
return ((jjbitVec20[i2] & l2) != 0L);
case 9:
return ((jjbitVec21[i2] & l2) != 0L);
case 10:
return ((jjbitVec22[i2] & l2) != 0L);
case 11:
return ((jjbitVec23[i2] & l2) != 0L);
case 12:
return ((jjbitVec24[i2] & l2) != 0L);
case 13:
return ((jjbitVec25[i2] & l2) != 0L);
case 14:
return ((jjbitVec26[i2] & l2) != 0L);
case 15:
return ((jjbitVec27[i2] & l2) != 0L);
case 16:
return ((jjbitVec28[i2] & l2) != 0L);
case 18:
return ((jjbitVec29[i2] & l2) != 0L);
case 19:
return ((jjbitVec30[i2] & l2) != 0L);
case 20:
return ((jjbitVec6[i2] & l2) != 0L);
case 22:
return ((jjbitVec31[i2] & l2) != 0L);
case 23:
return ((jjbitVec32[i2] & l2) != 0L);
case 24:
return ((jjbitVec33[i2] & l2) != 0L);
case 25:
return ((jjbitVec34[i2] & l2) != 0L);
case 26:
return ((jjbitVec35[i2] & l2) != 0L);
case 27:
return ((jjbitVec36[i2] & l2) != 0L);
case 28:
return ((jjbitVec37[i2] & l2) != 0L);
case 29:
return ((jjbitVec38[i2] & l2) != 0L);
case 31:
return ((jjbitVec39[i2] & l2) != 0L);
case 32:
return ((jjbitVec40[i2] & l2) != 0L);
case 33:
return ((jjbitVec41[i2] & l2) != 0L);
case 44:
return ((jjbitVec42[i2] & l2) != 0L);
case 45:
return ((jjbitVec43[i2] & l2) != 0L);
case 46:
return ((jjbitVec44[i2] & l2) != 0L);
case 48:
return ((jjbitVec45[i2] & l2) != 0L);
case 49:
return ((jjbitVec46[i2] & l2) != 0L);
case 77:
return ((jjbitVec47[i2] & l2) != 0L);
case 159:
return ((jjbitVec48[i2] & l2) != 0L);
case 164:
return ((jjbitVec49[i2] & l2) != 0L);
case 166:
return ((jjbitVec50[i2] & l2) != 0L);
case 167:
return ((jjbitVec51[i2] & l2) != 0L);
case 168:
return ((jjbitVec52[i2] & l2) != 0L);
case 169:
return ((jjbitVec53[i2] & l2) != 0L);
case 170:
return ((jjbitVec54[i2] & l2) != 0L);
case 171:
return ((jjbitVec55[i2] & l2) != 0L);
case 215:
return ((jjbitVec56[i2] & l2) != 0L);
case 250:
return ((jjbitVec57[i2] & l2) != 0L);
case 251:
return ((jjbitVec58[i2] & l2) != 0L);
case 253:
return ((jjbitVec59[i2] & l2) != 0L);
case 254:
return ((jjbitVec60[i2] & l2) != 0L);
case 255:
return ((jjbitVec61[i2] & l2) != 0L);
default :
if ((jjbitVec12[i1] & l1) != 0L)
return true;
return false;
}
}
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(Exception e)
{
jjmatchedKind = 0;
jjmatchedPos = -1;
matchedToken = jjFillToken();
return matchedToken;
}
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
matchedToken = jjFillToken();
return matchedToken;
}
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);
}
}
void SkipLexicalActions(Token matchedToken)
{
switch(jjmatchedKind)
{
default :
break;
}
}
void MoreLexicalActions()
{
jjimageLen += (lengthOfMatch = jjmatchedPos + 1);
switch(jjmatchedKind)
{
default :
break;
}
}
void TokenLexicalActions(Token matchedToken)
{
switch(jjmatchedKind)
{
default :
break;
}
}
private void jjCheckNAdd(int state)
{
if (jjrounds[state] != jjround)
{
jjstateSet[jjnewStateCnt++] = state;
jjrounds[state] = jjround;
}
}
private void jjAddStates(int start, int end)
{
do {
jjstateSet[jjnewStateCnt++] = jjnextStates[start];
} while (start++ != end);
}
private void jjCheckNAddTwoStates(int state1, int state2)
{
jjCheckNAdd(state1);
jjCheckNAdd(state2);
}
private void jjCheckNAddStates(int start, int end)
{
do {
jjCheckNAdd(jjnextStates[start]);
} while (start++ != end);
}
/** Constructor. */
public SimpleSqlGrammarTokenManager(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 SimpleSqlGrammarTokenManager (SimpleCharStream stream, int lexState){
ReInit(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 = 91; 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;
}
/** Lexer state names. */
public static final String[] lexStateNames = {
"DEFAULT",
};
/** Lex State array. */
public static final int[] jjnewLexState = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
};
static final long[] jjtoToken = {
0x1701bfL,
};
static final long[] jjtoSkip = {
0x0L,
};
static final long[] jjtoSpecial = {
0x0L,
};
static final long[] jjtoMore = {
0x0L,
};
protected SimpleCharStream input_stream;
private final int[] jjrounds = new int[91];
private final int[] jjstateSet = new int[2 * 91];
private final StringBuilder jjimage = new StringBuilder();
private StringBuilder image = jjimage;
private int jjimageLen;
private int lengthOfMatch;
protected int curChar;
}