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.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) |
short |
getHeight() |
int |
hashCode() |
String |
toString() |
display, production, terminal
public short getHeight()
getHeight
in class Derivation
public void append(Derivation.Displayer displayer, Appendable buf) throws IOException
Derivation
buf
using displayer
append
in class Derivation
IOException
public String toString()
toString
in class Derivation