📄 wktgeoxygenetokenmanager.java
字号:
jjCheckNAddStates(48, 50);
break;
case 26:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(51, 54);
break;
case 27:
if (curChar == 46)
jjCheckNAdd(28);
break;
case 28:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(55, 57);
break;
case 29:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(58, 60);
break;
case 30:
if (curChar == 46)
jjCheckNAdd(31);
break;
case 31:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(31, 6);
break;
case 32:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(32, 6);
break;
case 33:
if (curChar == 46)
jjCheckNAddTwoStates(34, 38);
break;
case 34:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddTwoStates(34, 35);
break;
case 36:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(37);
break;
case 37:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAdd(37);
break;
case 38:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAdd(38);
break;
case 39:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddStates(61, 67);
break;
case 40:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddTwoStates(40, 35);
break;
case 41:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddStates(68, 70);
break;
case 42:
if (curChar == 46)
jjCheckNAdd(43);
break;
case 43:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddTwoStates(43, 35);
break;
case 44:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddTwoStates(44, 45);
break;
case 45:
if (curChar == 46)
jjCheckNAdd(46);
break;
case 46:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAdd(46);
break;
case 47:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAdd(47);
break;
case 48:
if (curChar == 46)
jjCheckNAddStates(19, 22);
break;
case 49:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 1)
kind = 1;
jjCheckNAddStates(0, 14);
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 3:
if ((0x2000000020L & l) != 0L)
jjAddStates(71, 72);
break;
case 10:
if ((0x2000000020L & l) != 0L)
jjAddStates(73, 74);
break;
case 35:
if ((0x2000000020L & l) != 0L)
jjAddStates(75, 76);
break;
default : break;
}
} while(i != startsAt);
}
else
{
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 50 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
static final int[] jjnextStates = {
40, 41, 42, 35, 44, 45, 47, 25, 26, 27, 3, 29, 30, 32, 6, 1,
24, 33, 39, 34, 38, 2, 23, 2, 3, 6, 6, 7, 8, 14, 15, 16,
17, 10, 19, 20, 22, 16, 17, 10, 25, 26, 27, 3, 29, 30, 32, 6,
25, 3, 6, 26, 27, 3, 6, 28, 3, 6, 29, 30, 6, 40, 41, 42,
35, 44, 45, 47, 41, 42, 35, 4, 5, 11, 12, 36, 37,
};
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, "\12", null, null, "\50", "\51",
"\105\115\120\124\131", "\54", "\120\117\111\116\124", "\115\125\114\124\111\120\117\111\116\124",
"\114\111\116\105\123\124\122\111\116\107", "\115\125\114\124\111\114\111\116\105\123\124\122\111\116\107",
"\120\117\114\131\107\117\116", "\115\125\114\124\111\120\117\114\131\107\117\116",
"\107\105\117\115\105\124\122\131\103\117\114\114\105\103\124\111\117\116", };
public static final String[] lexStateNames = {
"DEFAULT",
};
static final long[] jjtoToken = {
0xffe63L,
};
static final long[] jjtoSkip = {
0x180L,
};
private SimpleCharStream input_stream;
private final int[] jjrounds = new int[50];
private final int[] jjstateSet = new int[100];
protected char curChar;
public WktGeOxygeneTokenManager(SimpleCharStream stream)
{
if (SimpleCharStream.staticFlag)
throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
input_stream = stream;
}
public WktGeOxygeneTokenManager(SimpleCharStream stream, int lexState)
{
this(stream);
SwitchTo(lexState);
}
public void ReInit(SimpleCharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
private final void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 50; i-- > 0;)
jjrounds[i] = 0x80000000;
}
public void ReInit(SimpleCharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
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;
}
private final Token jjFillToken()
{
Token t = Token.newToken(jjmatchedKind);
t.kind = jjmatchedKind;
String im = jjstrLiteralImages[jjmatchedKind];
t.image = (im == null) ? input_stream.GetImage() : im;
t.beginLine = input_stream.getBeginLine();
t.beginColumn = input_stream.getBeginColumn();
t.endLine = input_stream.getEndLine();
t.endColumn = input_stream.getEndColumn();
return t;
}
int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
public final Token getNextToken()
{
int kind;
Token specialToken = null;
Token matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.BeginToken();
}
catch(java.io.IOException e)
{
jjmatchedKind = 0;
matchedToken = jjFillToken();
return matchedToken;
}
try { input_stream.backup(0);
while (curChar <= 32 && (0x100000200L & (1L << curChar)) != 0L)
curChar = input_stream.BeginToken();
}
catch (java.io.IOException e1) { continue EOFLoop; }
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 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();
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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -