NT - is an Enum type with one value for every nonterminal in the grammar. See Parser for more information.public interface ParseTree<NT extends Enum<NT>>
If the grammar used @skip to skip over some nonterminals automatically, then the skipped subtrees do not appear among this node's children(), but can be found by using allChildren() or childrenByName().
| Modifier and Type | Method and Description |
|---|---|
List<ParseTree<NT>> |
allChildren()
Get all of this node's children, including @skip rules.
|
List<ParseTree<NT>> |
children()
Get this node's children.
|
List<ParseTree<NT>> |
childrenByName(NT name)
Get the children that correspond to a particular production rule
|
boolean |
isSkipped()
Test if this node is in a subtree that was @skipped.
|
NT |
name()
Get this node's name.
|
String |
text()
Get this subtree's text.
|
NT name()
List<ParseTree<NT>> children()
String text()
List<ParseTree<NT>> childrenByName(NT name)
name - Name of the nonterminal corresponding to the desired production rule.List<ParseTree<NT>> allChildren()
boolean isSkipped()