Groovy Documentation

## org.codehaus.groovy.grails.web.json.parser
[Java] Class JSONParser

    java.lang.Object
      org.codehaus.groovy.grails.web.json.parser.JSONParser

All Implemented Interfaces:
  JsonParserConstants

    @SuppressWarnings("all")
    public final class JSONParser

Field Summary
`Token` | `jj_nt` Next token.
`Token` | `token` Current token.
`JsonParserTokenManager` | `token_source` Generated Token Manager.

Constructor Summary
`JSONParser(java.lang.Object stream)` Constructor with InputStream.
`JSONParser(java.lang.Object stream, java.lang.String encoding)` Constructor with InputStream and supplied encoding
`JSONParser(java.lang.Object stream)` Constructor.
`JSONParser(JsonParserTokenManager tm)` Constructor with generated Token Manager.

Method Summary
`void` | `ReInit(java.lang.Object stream)` Reinitialise.
`void` | `ReInit(java.lang.Object stream, java.lang.String encoding)` Reinitialise.
`void` | `ReInit(java.lang.Object stream)` Reinitialise.
`void` | `ReInit(JsonParserTokenManager tm)` Reinitialise.
`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.
`java.lang.Object` | `parse()`
`JSONElement` | `parseJSON()`

Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Field Detail

### jj_nt

    public Token jj_nt

  Next token.

### token

    public Token token

  Current token.

### token_source

    public JsonParserTokenManager token_source

  Generated Token Manager.

Constructor Detail

### JSONParser

    public JSONParser(java.lang.Object stream)

  Constructor with InputStream.

### JSONParser

    public JSONParser(java.lang.Object stream, java.lang.String encoding)

  Constructor with InputStream and supplied encoding

### JSONParser

    public JSONParser(java.lang.Object stream)

  Constructor.

### JSONParser

    public JSONParser(JsonParserTokenManager tm)

  Constructor with generated Token Manager.

Method Detail

### ReInit

    public void ReInit(java.lang.Object stream)

  Reinitialise.

### ReInit

    public void ReInit(java.lang.Object stream, java.lang.String encoding)

  Reinitialise.

### ReInit

    public void ReInit(java.lang.Object stream)

  Reinitialise.

### ReInit

    public void ReInit(JsonParserTokenManager tm)

  Reinitialise.

### disable_tracing

    public final void disable_tracing()

  Disable tracing.

### enable_tracing

    public final void enable_tracing()

  Enable tracing.

### generateParseException

    public ParseException generateParseException()

  Generate ParseException.

### getNextToken

    public final Token getNextToken()

  Get the next Token.

### getToken

    public final Token getToken(int index)

  Get the specific Token.

### parse

    public final java.lang.Object parse()

### parseJSON

    public final JSONElement parseJSON()

Groovy Documentation