public static final class Derivation.NonTerminal extends Derivation
Derivation tree, i.e. the realization
of some non-terminal (Derivation.symbol) in the grammar via one
of its production (prod). The items for the production rule
are themselves derivation trees and can be fetched with getChildren().Derivation.Displayer, Derivation.NonTerminal, Derivation.Terminal| Modifier and Type | Field and Description |
|---|---|
short |
prod
The index of the production used to produce this non-terminal
|
symbol| Modifier and Type | Method and Description |
|---|---|
void |
append(Derivation.Displayer displayer,
Appendable buf)
Appends the representation of the receiver into
buf using displayer |
boolean |
equals(@Nullable Object o) |
List<Derivation> |
getChildren() |
short |
getHeight() |
int |
hashCode() |
display, production, terminal, toStringpublic final short prod
public List<Derivation> getChildren()
public short getHeight()
getHeight in class Derivationpublic void append(Derivation.Displayer displayer, Appendable buf) throws IOException
Derivationbuf using displayerappend in class DerivationIOException