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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

Method

Taccept(ParseTreeVisitor visitor)
RuleContextaddChild(RuleContext ruleInvocation)
TerminalNodeaddChild(TerminalNode t)
Add a token leaf node child and force its parent to be this node.
TerminalNodeaddChild(Token matchedToken)
Add a child to this node based upon matchedToken.
ErrorNodeaddErrorNode(ErrorNode errorNode)
Add an error node child and force its parent to be this node.
ErrorNodeaddErrorNode(Token badToken)
Add a child to this node based upon badToken.
intdepth()
voidenterRule(ParseTreeListener listener)
voidexitRule(ParseTreeListener listener)
ParseTreegetChild(int i)
TgetChild(Class ctxType, int i)
intgetChildCount()
ParserRuleContextgetParent()
TgetRuleContext(Class ctxType, int i)
ListgetRuleContexts(Class ctxType)
intgetRuleIndex()
IntervalgetSourceInterval()
TokengetStart()
Get the initial token in this context.
TokengetStop()
Get the final token in this context.
StringgetText()
Return the combined text of all child nodes.
TerminalNodegetToken(int ttype, int i)
StringtoInfoString(Parser recognizer)
Used for rule context info debugging during parse-time, not so much for ATN debugging
StringtoString()
StringtoString(Recognizer recog)
StringtoStringTree()
StringtoStringTree(Parser recog)
Print out a whole tree, not just a node, in LISP format (root child1 ..