Class JSONParserAntlr

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

public class JSONParserAntlr extends antlr.LLkParser implements JSONParserAntlrTokenTypes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
     

    Fields inherited from class antlr.Parser

    astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    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

    Modifier and Type
    Method
    Description
    final JSONArray
    array(String aStreamName)
     
    final JSONValue
    atomic(String aStreamName)
     
    object(String aStreamName)
     
    final 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 Details

    • _tokenNames

      public static final String[] _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)
    • JSONParserAntlr

      public JSONParserAntlr(antlr.ParserSharedInputState state)
  • Method Details

    • 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