Package ej.jsonpath.parser
Class JSONPathCompilerTokenManager
- java.lang.Object
-
- ej.jsonpath.parser.JSONPathCompilerTokenManager
-
- All Implemented Interfaces:
JSONPathCompilerConstants
public class JSONPathCompilerTokenManager extends Object implements JSONPathCompilerConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurCharPrintStreamdebugStreamDebug output.protected CharStreaminput_streamstatic String[]jjstrLiteralImagesToken literal values.static String[]lexStateNamesLexer state names.-
Fields inherited from interface ej.jsonpath.parser.JSONPathCompilerConstants
AND, CLOSE_ARRAY, CNAME, DEFAULT, DIGIT, DIGIT19, DOT, EOF, EXP, EXPONENT, FRAC, IDENTIFIER, INTEGER, LETTER, NOT, NUMBER, OP, OPEN_ARRAY, OR, OTHER, tokenImage
-
-
Constructor Summary
Constructors Constructor Description JSONPathCompilerTokenManager(CharStream stream)Constructor.JSONPathCompilerTokenManager(CharStream stream, int lexState)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokengetNextToken()Get the next Token.protected TokenjjFillToken()voidReInit(CharStream stream)Reinitialise parser.voidReInit(CharStream stream, int lexState)Reinitialise parser.voidsetDebugStream(PrintStream ds)Set debug output.voidSwitchTo(int lexState)Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
input_stream
protected CharStream input_stream
-
curChar
protected int curChar
-
-
Constructor Detail
-
JSONPathCompilerTokenManager
public JSONPathCompilerTokenManager(CharStream stream)
Constructor.
-
JSONPathCompilerTokenManager
public JSONPathCompilerTokenManager(CharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(PrintStream ds)
Set debug output.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
ReInit
public void ReInit(CharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(CharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-