Interface DerivationTree
- All Known Implementing Classes:
DerivationTree.RuleNode,DerivationTree.TerminalNode
Immutable derivation tree (AST) built from grammar productions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordNon-terminal expansion node.static final recordLeaf terminal node. -
Method Summary
-
Method Details
-
depth
int depth()Node depth where root is zero. -
outputType
ValueType outputType()Output type of this expression node. -
children
List<DerivationTree> children()Child nodes. -
isTerminal
default boolean isTerminal()Node representation kind.
-