Java org.antlr.v4.runtime Parser fields, constructors, methods, implement or subclass

Example usage for Java org.antlr.v4.runtime Parser fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.antlr.v4.runtime Parser.

The text is from its open source code.

Subclass

org.antlr.v4.runtime.Parser has subclasses.
Click this link to see all its subclasses.

Method

Tokenconsume()
Consume and return the #getCurrentToken current symbol .
booleangetBuildParseTree()
Gets whether or not a complete parse tree will be constructed while parsing.
ParserRuleContextgetContext()
TokengetCurrentToken()
Match needs to return the current input symbol, which gets put into the label for the associated token ref; e.g., x=ID.
IntervalSetgetExpectedTokens()
Computes the set of input symbols which could follow the current parser state and context, as given by #getState and #getContext , respectively.
TokenStreamgetInputStream()
ListgetRuleInvocationStack()
Return List<String> of the rule names in your parser instance leading up to a call to the current rule.
ListgetRuleInvocationStack(RuleContext p)
StringgetSourceName()
TokenFactorygetTokenFactory()
TokenStreamgetTokenStream()
booleanisExpectedToken(int symbol)
Checks whether or not symbol can follow the current state in the ATN.
voidnotifyErrorListeners(Token offendingToken, String msg, RecognitionException e)
voidnotifyErrorListeners(String msg)
voidsetBuildParseTree(boolean buildParseTrees)
Track the ParserRuleContext objects during the parse and hook them up using the ParserRuleContext#children list so that it forms a parse tree.
voidsetErrorHandler(ANTLRErrorStrategy handler)
voidsetInputStream(IntStream input)