Example usage for Java org.antlr.v4.runtime ParserRuleContext fields, constructors, methods, implement or subclass
The text is from its open source code.
T | accept(ParseTreeVisitor extends T> visitor) |
RuleContext | addChild(RuleContext ruleInvocation) |
TerminalNode | addChild(TerminalNode t) Add a token leaf node child and force its parent to be this node. |
TerminalNode | addChild(Token matchedToken) Add a child to this node based upon matchedToken. |
ErrorNode | addErrorNode(ErrorNode errorNode) Add an error node child and force its parent to be this node. |
ErrorNode | addErrorNode(Token badToken) Add a child to this node based upon badToken. |
int | depth() |
void | enterRule(ParseTreeListener listener) |
void | exitRule(ParseTreeListener listener) |
ParseTree | getChild(int i) |
T | getChild(Class extends T> ctxType, int i) |
int | getChildCount() |
ParserRuleContext | getParent() |
T | getRuleContext(Class extends T> ctxType, int i) |
List | getRuleContexts(Class extends T> ctxType) |
int | getRuleIndex() |
Interval | getSourceInterval() |
Token | getStart() Get the initial token in this context. |
Token | getStop() Get the final token in this context. |
String | getText() Return the combined text of all child nodes. |
TerminalNode | getToken(int ttype, int i) |
String | toInfoString(Parser recognizer) Used for rule context info debugging during parse-time, not so much for ATN debugging |
String | toString() |
String | toString(Recognizer, ?> recog) |
String | toStringTree() |
String | toStringTree(Parser recog) Print out a whole tree, not just a node, in LISP format (root child1 .. |