public class JSON_Parser extends JSON_ParserBase implements JSON_ParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
JSON_ParserTokenManager |
token_source
Generated Token Manager.
|
COLON, COMMA, DECIMAL, DEFAULT, DIGITS, DOUBLE, ECHAR, EOF, EXPONENT, FALSE, INTEGER, LBRACE, LBRACKET, LPAREN, MINUS, NEGATIVE_DECIMAL, NEGATIVE_DOUBLE, NEGATIVE_INTEGER, NULL, PLUS, POSITIVE_DECIMAL, POSITIVE_DOUBLE, POSITIVE_INTEGER, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, RPAREN, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, tokenImage, TRUE, WS| Constructor and Description |
|---|
JSON_Parser(InputStream stream)
Constructor with InputStream.
|
JSON_Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
JSON_Parser(JSON_ParserTokenManager tm)
Constructor with generated Token Manager.
|
JSON_Parser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
any() |
void |
Array() |
void |
ArrayValue(long line,
long col) |
void |
disable_tracing()
Disable tracing.
|
void |
Elements(Token t) |
void |
enable_tracing()
Enable tracing.
|
void |
False() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
Members(Token t) |
void |
Null() |
void |
Number() |
void |
Object() |
void |
Pair(Token t) |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(JSON_ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
SimpleValue() |
void |
String() |
void |
True() |
void |
unit() |
void |
Value() |
setHandlerpublic JSON_ParserTokenManager token_source
public Token token
public Token jj_nt
public JSON_Parser(InputStream stream)
public JSON_Parser(InputStream stream, String encoding)
public JSON_Parser(Reader stream)
public JSON_Parser(JSON_ParserTokenManager tm)
public final void unit()
throws ParseException
ParseExceptionpublic final void any()
throws ParseException
ParseExceptionpublic final void Value()
throws ParseException
ParseExceptionpublic final void Object()
throws ParseException
ParseExceptionpublic final void Members(Token t) throws ParseException
ParseExceptionpublic final void Pair(Token t) throws ParseException
ParseExceptionpublic final void Array()
throws ParseException
ParseExceptionpublic final void Elements(Token t) throws ParseException
ParseExceptionpublic final void ArrayValue(long line,
long col)
throws ParseException
ParseExceptionpublic final void SimpleValue()
throws ParseException
ParseExceptionpublic final void Number()
throws ParseException
ParseExceptionpublic final void String()
throws ParseException
ParseExceptionpublic final void True()
throws ParseException
ParseExceptionpublic final void False()
throws ParseException
ParseExceptionpublic final void Null()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(JSON_ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Licenced under the Apache License, Version 2.0