|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.json.parser.JSONParser
public final class JSONParser
Field Summary | |
---|---|
(package private) SimpleCharStream |
jj_input_stream
|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
JsonParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.codehaus.groovy.grails.web.json.parser.JsonParserConstants |
---|
CHAR, CNTRL_ESC, DEFAULT, DIGITS, DOUBLE_QUOTE_LITERAL, E, ENDQUOTE, EOF, ESC_STATE, ESCAPE_CHAR, HEX, HEX_CHAR, HEX_ESC, HEX_STATE, QUOTE, SINGLE_QUOTE_LITERAL, STRING_STATE, tokenImage, UNICODE_CHAR |
Constructor Summary | |
---|---|
JSONParser(InputStream stream)
Constructor with InputStream. |
|
JSONParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
JSONParser(JsonParserTokenManager tm)
Constructor with generated Token Manager. |
|
JSONParser(Reader stream)
Constructor. |
Method Summary | |
---|---|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
Object |
parse()
|
JSONElement |
parseJSON()
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(JsonParserTokenManager tm)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public JsonParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
Constructor Detail |
---|
public JSONParser(InputStream stream)
public JSONParser(InputStream stream, String encoding)
public JSONParser(Reader stream)
public JSONParser(JsonParserTokenManager tm)
Method Detail |
---|
public final Object parse() throws ParseException
ParseException
public final JSONElement parseJSON() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(JsonParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |