public static final class Derivation.Terminal extends Derivation
Derivation tree, i.e. some
terminal identified by its Derivation.symbol number.
For efficiency reasons, maximal sharing is used so that instances
of Derivation.Terminal can have a perfect hashing and can be compared
physically.
Derivation.Displayer, Derivation.NonTerminal, Derivation.Terminalsymbol| 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) |
short |
getHeight() |
int |
hashCode() |
String |
toString() |
display, production, terminalpublic short getHeight()
getHeight in class Derivationpublic void append(Derivation.Displayer displayer, Appendable buf) throws IOException
Derivationbuf using displayerappend in class DerivationIOExceptionpublic String toString()
toString in class Derivation