Package com.sdicons.json.parser.impl
Class JSONParserAntlr
java.lang.Object
antlr.Parser
antlr.LLkParser
com.sdicons.json.parser.impl.JSONParserAntlr
- All Implemented Interfaces:
JSONParserAntlrTokenTypes
-
Field Summary
FieldsFields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth -
Constructor Summary
ConstructorsModifierConstructorDescriptionJSONParserAntlr(antlr.ParserSharedInputState state) JSONParserAntlr(antlr.TokenBuffer tokenBuf) protectedJSONParserAntlr(antlr.TokenBuffer tokenBuf, int k) JSONParserAntlr(antlr.TokenStream lexer) protectedJSONParserAntlr(antlr.TokenStream lexer, int k) -
Method Summary
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOutMethods 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
-
Field Details
-
_tokenNames
-
-
Constructor Details
-
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)
-
-
Method Details
-
value
public final JSONValue value(String aStreamName) throws antlr.RecognitionException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
object
public final JSONObject object(String aStreamName) throws antlr.RecognitionException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
array
public final JSONArray array(String aStreamName) throws antlr.RecognitionException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
atomic
public final JSONValue atomic(String aStreamName) throws antlr.RecognitionException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-