org.openjena.atlas.json.io.parserjavacc.javacc
Class JSON_Parser

java.lang.Object
  extended by org.openjena.atlas.json.io.parserjavacc.javacc.JSON_ParserBase
      extended by org.openjena.atlas.json.io.parserjavacc.javacc.JSON_Parser
All Implemented Interfaces:
JSON_ParserConstants

public class JSON_Parser
extends JSON_ParserBase
implements JSON_ParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 JSON_ParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.openjena.atlas.json.io.parserjavacc.javacc.JSON_ParserConstants
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 Summary
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.
 
Method Summary
 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()
           
 
Methods inherited from class org.openjena.atlas.json.io.parserjavacc.javacc.JSON_ParserBase
setHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public JSON_ParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

JSON_Parser

public JSON_Parser(InputStream stream)
Constructor with InputStream.


JSON_Parser

public JSON_Parser(InputStream stream,
                   String encoding)
Constructor with InputStream and supplied encoding


JSON_Parser

public JSON_Parser(Reader stream)
Constructor.


JSON_Parser

public JSON_Parser(JSON_ParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

unit

public final void unit()
                throws ParseException
Throws:
ParseException

any

public final void any()
               throws ParseException
Throws:
ParseException

Value

public final void Value()
                 throws ParseException
Throws:
ParseException

Object

public final void Object()
                  throws ParseException
Throws:
ParseException

Members

public final void Members(Token t)
                   throws ParseException
Throws:
ParseException

Pair

public final void Pair(Token t)
                throws ParseException
Throws:
ParseException

Array

public final void Array()
                 throws ParseException
Throws:
ParseException

Elements

public final void Elements(Token t)
                    throws ParseException
Throws:
ParseException

ArrayValue

public final void ArrayValue(long line,
                             long col)
                      throws ParseException
Throws:
ParseException

SimpleValue

public final void SimpleValue()
                       throws ParseException
Throws:
ParseException

Number

public final void Number()
                  throws ParseException
Throws:
ParseException

String

public final void String()
                  throws ParseException
Throws:
ParseException

True

public final void True()
                throws ParseException
Throws:
ParseException

False

public final void False()
                 throws ParseException
Throws:
ParseException

Null

public final void Null()
                throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(JSON_ParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Licenced under the Apache License, Version 2.0