net.sourceforge.javajson.parser
Class JsonParser
java.lang.Object
net.sourceforge.javajson.parser.JsonParser
- All Implemented Interfaces:
- JsonParserConstants, JsonParserTreeConstants
public class JsonParser
- extends Object
- implements JsonParserTreeConstants, JsonParserConstants
Fields inherited from interface net.sourceforge.javajson.parser.JsonParserConstants |
DECIMAL_LITERAL, DEFAULT, EOF, EXPONENT, FALSE_LITERAL, FLOATING_POINT_LITERAL, FORMAL_COMMENT, HEX_DIGIT, HEX_LITERAL, INTEGER_LITERAL, KEY_LITERAL, MULTI_LINE_COMMENT, NULL_LITERAL, OCTAL_LITERAL, SINGLE_LINE_COMMENT, STRING_LITERAL, STRING_LITERAL_SINGLE_QUOTES, tokenImage, TRUE_LITERAL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jjtree
protected net.sourceforge.javajson.parser.JJTJsonParserState jjtree
token_source
public JsonParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
JsonParser
public JsonParser(InputStream stream)
JsonParser
public JsonParser(InputStream stream,
String encoding)
JsonParser
public JsonParser(Reader stream)
JsonParser
public JsonParser(JsonParserTokenManager tm)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
parse
public final SimpleNode parse()
throws ParseException
- Throws:
ParseException
object
public final void object()
throws ParseException
- Throws:
ParseException
array
public final void array()
throws ParseException
- Throws:
ParseException
members
public final void members()
throws ParseException
- Throws:
ParseException
elements
public final void elements()
throws ParseException
- Throws:
ParseException
value
public final void value()
throws ParseException
- Throws:
ParseException
key
public final void key()
throws ParseException
- Throws:
ParseException
string
public final void string()
throws ParseException
- Throws:
ParseException
number
public final void number()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(InputStream stream,
String encoding)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(JsonParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()