com.sdicons.json.parser.impl
Class JSONParserAntlr

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by com.sdicons.json.parser.impl.JSONParserAntlr
All Implemented Interfaces:
JSONParserAntlrTokenTypes

public class JSONParserAntlr
extends antlr.LLkParser
implements JSONParserAntlrTokenTypes


Field Summary
static String[] _tokenNames
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface com.sdicons.json.parser.impl.JSONParserAntlrTokenTypes
COLON, COMMA, DIGIT, EOF, ESC, EXPONENT, FALSE, HEX_DIGIT, INTEGER, LBRACK, LCURLY, LPAREN, NONZERO, NULL, NULL_TREE_LOOKAHEAD, NUMBER, QUOTES, RBRACK, RCURLY, RPAREN, SL_COMMENT, STRING, TRUE, WS, ZERO
 
Constructor Summary
  JSONParserAntlr(antlr.ParserSharedInputState state)
           
  JSONParserAntlr(antlr.TokenBuffer tokenBuf)
           
protected JSONParserAntlr(antlr.TokenBuffer tokenBuf, int k)
           
  JSONParserAntlr(antlr.TokenStream lexer)
           
protected JSONParserAntlr(antlr.TokenStream lexer, int k)
           
 
Method Summary
 JSONArray array(String aStreamName)
           
 JSONValue atomic(String aStreamName)
           
 JSONObject object(String aStreamName)
           
 JSONValue value(String aStreamName)
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final String[] _tokenNames
Constructor Detail

JSONParserAntlr

protected JSONParserAntlr(antlr.TokenBuffer tokenBuf,
                          int k)

JSONParserAntlr

public JSONParserAntlr(antlr.TokenBuffer tokenBuf)

JSONParserAntlr

protected JSONParserAntlr(antlr.TokenStream lexer,
                          int k)

JSONParserAntlr

public JSONParserAntlr(antlr.TokenStream lexer)

JSONParserAntlr

public JSONParserAntlr(antlr.ParserSharedInputState state)
Method Detail

value

public final JSONValue value(String aStreamName)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

object

public final JSONObject object(String aStreamName)
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

array

public final JSONArray array(String aStreamName)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

atomic

public final JSONValue atomic(String aStreamName)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException


Copyright © 2011. All Rights Reserved.