RuleContext objects created
during a parse that makes the data structure look like a simple parse tree.
This node represents both internal nodes, rule invocations,
and leaf nodes, token matches.
The payload is either a Token or a RuleContext object.
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| public ParseTree | getChild(int i)
Redeclares org. ith value indexed from 0.
|
| public ParseTree | |
| public String | |
| public String | toStringTree(Parser parser)
Specialize toStringTree so that it can print out more information based upon the parser. |
| accept | back to summary |
|---|---|
| public <T> T accept(ParseTreeVisitor<? extends T> visitor) The | |
| getChild | back to summary |
|---|---|
| public ParseTree getChild(int i) Redeclares org. Doc from org. If there are children, get the
| |
| getParent | back to summary |
|---|---|
| public ParseTree getParent() Redeclares org. Doc from org. The parent of this node. If the return value is null, then this node is the root of the tree.
| |
| getText | back to summary |
|---|---|
| public String getText() Return the combined text of all leaf nodes. Does not get any off-channel tokens (if any) so won't return whitespace and comments if they are sent to parser on hidden channel. | |
| toStringTree | back to summary |
|---|---|
| public String toStringTree(Parser parser) Specialize toStringTree so that it can print out more information based upon the parser. | |