Package org.apache.tomcat.util.json
Class JSONParserTokenManager
java.lang.Object
org.apache.tomcat.util.json.JSONParserTokenManager
- All Implemented Interfaces:
JSONParserConstants
Token Manager.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Debug output.protected JavaCharStream
static final int[]
Lex State array.static final String[]
Token literal values.static final String[]
Lexer state names.Fields inherited from interface org.apache.tomcat.util.json.JSONParserConstants
BRACE_CLOSE, BRACE_OPEN, BRACKET_CLOSE, BRACKET_OPEN, C_MULTILINE_COMMENT, C_SINGLE_COMMENT, COLON, COMMA, DEFAULT, DIGIT, DIGIT_NONZERO, EOF, EOL, FALSE, NULL, NUMBER_DECIMAL, NUMBER_INTEGER, QUOTE_DOUBLE, QUOTE_SINGLE, SH_SINGLE_COMMENT, STRING_DOUBLE_BODY, STRING_DOUBLE_EMPTY, STRING_DOUBLE_NONEMPTY, STRING_SINGLE_BODY, STRING_SINGLE_EMPTY, STRING_SINGLE_NONEMPTY, SYMBOL, tokenImage, TRUE, WHITESPACE, ZERO
-
Constructor Summary
ConstructorDescriptionJSONParserTokenManager
(JavaCharStream stream) Constructor.JSONParserTokenManager
(JavaCharStream stream, int lexState) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the next Token.protected Token
void
ReInit
(JavaCharStream stream) Reinitialise parser.void
ReInit
(JavaCharStream stream, int lexState) Reinitialise parser.void
Set debug output.void
SwitchTo
(int lexState) Switch to specified lex state.
-
Field Details
-
debugStream
Debug output. -
jjstrLiteralImages
Token literal values. -
lexStateNames
Lexer state names. -
jjnewLexState
public static final int[] jjnewLexStateLex State array. -
input_stream
-
curChar
protected int curChar
-
-
Constructor Details
-
JSONParserTokenManager
Constructor. -
JSONParserTokenManager
Constructor.
-
-
Method Details
-
setDebugStream
Set debug output. -
jjFillToken
-
getNextToken
Get the next Token. -
ReInit
Reinitialise parser. -
ReInit
Reinitialise parser. -
SwitchTo
public void SwitchTo(int lexState) Switch to specified lex state.
-