public class JsonParser extends Object implements JsonParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
JsonParserTokenManager |
token_source
Generated Token Manager.
|
BRACE_CLOSE, BRACE_OPEN, BRACKET_CLOSE, BRACKET_OPEN, C_MULTILINE_COMMENT_END, C_MULTILINE_COMMENT_START, C_SINGLE_COMMENT, COLON, COMMA, DEFAULT, DIGIT, DIGITS, DOT, EOF, EXP, EXPONENT, FALSE, FRACTIONAL_DIGITS, HTML_MULTILINE_COMMENT_END, HTML_MULTILINE_COMMENT_START, INTEGER, LETTER, MINUS, NULL, NUMBER, PLUS, 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, UNICODE_WHITESPACE, WHITESPACE, WithinMLC, WithinMLH| Constructor and Description |
|---|
JsonParser(JsonParserTokenManager tm)
Constructor with generated Token Manager.
|
JsonParser(Provider stream)
Constructor.
|
JsonParser(String dsl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
booleanValue() |
void |
disable_tracing()
Disable tracing.
|
String |
doubleQuoteString() |
void |
enable_tracing()
Enable tracing.
|
boolean |
ensureEOF() |
ParseException |
generateParseException()
Generate ParseException.
|
int |
getColumn() |
int |
getLine() |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
handleIgnorable(Token t) |
void |
json() |
void |
list() |
String |
nullValue() |
String |
number() |
void |
object() |
String |
objectKey() |
void |
parse() |
void |
ReInit(JsonParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Provider stream)
Reinitialise.
|
void |
ReInit(String s) |
void |
setHandler(IJsonHandler handler) |
String |
singleQuoteString() |
String |
string() |
String |
symbol() |
boolean |
trace_enabled()
Trace enabled.
|
void |
value() |
public JsonParserTokenManager token_source
public Token token
public Token jj_nt
public JsonParser(Provider stream)
public JsonParser(String dsl) throws ParseException, TokenMgrException
ParseExceptionTokenMgrExceptionpublic JsonParser(JsonParserTokenManager tm)
public void setHandler(IJsonHandler handler)
public void parse()
throws ParseException
ParseExceptionpublic int getLine()
public int getColumn()
public void handleIgnorable(Token t)
public final boolean ensureEOF()
throws ParseException
ParseExceptionpublic final void json()
throws ParseException
ParseExceptionpublic final void object()
throws ParseException
ParseExceptionpublic final void list()
throws ParseException
ParseExceptionpublic final String objectKey() throws ParseException
ParseExceptionpublic final void value()
throws ParseException
ParseExceptionpublic final String nullValue() throws ParseException
ParseExceptionpublic final String booleanValue() throws ParseException
ParseExceptionpublic final String number() throws ParseException
ParseExceptionpublic final String string() throws ParseException
ParseExceptionpublic final String doubleQuoteString() throws ParseException
ParseExceptionpublic final String singleQuoteString() throws ParseException
ParseExceptionpublic final String symbol() throws ParseException
ParseExceptionpublic void ReInit(String s)
public void ReInit(Provider stream)
public void ReInit(JsonParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2021. All rights reserved.