Example usage for Java org.antlr.v4.runtime.tree ParseTree fields, constructors, methods, implement or subclass
The text is from its open source code.
T | accept(ParseTreeVisitor extends T> visitor) The ParseTreeVisitor needs a double dispatch method. |
ParseTree | getChild(int i) |
int | getChildCount() How many children are there? |
ParseTree | getParent() |
Object | getPayload() This method returns whatever object represents the data at this note. |
Interval | getSourceInterval() Return an Interval indicating the index in the TokenStream of the first and last token associated with this subtree. |
String | getText() Return the combined text of all leaf nodes. |
String | toStringTree(Parser parser) Specialize toStringTree so that it can print out more information based upon the parser. |
String | toStringTree() Print out a whole tree, not just a node, in LISP format (root child1 .. |