/** Reinitialise parser. */ public void ReInit(SimpleCharStream stream) { jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds(); }
private int nextToken() throws XPathException { if ((nextToken = token.next) == null) { return (nextTokenIndex = (token.next = tokenSource.getNextToken()).kind); } else { return (nextTokenIndex = nextToken.kind); } } }
for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; case 23: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(0, 2); else if (curChar == 39) { if (kind > 24) case 24: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(3, 5); else if (curChar == 34) { if (kind > 24) kind = 21; } else if (curChar == 39) jjCheckNAddStates(0, 2); else if (curChar == 34) jjCheckNAddStates(3, 5); if ((0x3ff000000000000L & l) != 0L) { if (kind > 17) kind = 17; jjCheckNAddStates(6, 9); } else if (curChar == 46) jjCheckNAdd(1);
} catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; 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 {
private void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); }
/** Constructor. */ public XPath20ParserTokenManager(SimpleCharStream stream, int lexState) throws XPathException { this(stream); SwitchTo(lexState); }
/** Constructor. */ public XPath20Parser(java.io.Reader stream, NamespaceContext nsContext) { fNsContext = nsContext; inputStream = new SimpleCharStream(stream, 1, 1); tokenSource = new XPath20ParserTokenManager(inputStream); token = new Token(); nextTokenIndex = -1; gen = 0; for (int i = 0; i < 10; i++) array1[i] = -1; }
private void jjCheckNAddTwoStates(int state1, int state2) { jjCheckNAdd(state1); jjCheckNAdd(state2); }
private Token consumeToken(int kind) throws XPathException { Token oldToken; if ((oldToken = token).next != null) { token = token.next; } else { token = token.next = tokenSource.getNextToken(); } nextTokenIndex = -1; if (token.kind == kind) { gen++; return token; } token = oldToken; throw new XPathException("c-general-xpath"); }