|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava_cup.production_part
This class represents one part (either a symbol or an action) of a production. In this base class it contains only an optional label string that the user can use to refer to the part within actions.
This is an abstract class.
production
Field Summary | |
protected java.lang.String |
_label
Optional label for referring to the part within an action (null for no label). |
Constructor Summary | |
production_part(java.lang.String lab)
Simple constructor. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Generic equality comparison. |
boolean |
equals(production_part other)
Equality comparison. |
int |
hashCode()
Produce a hash code. |
abstract boolean |
is_action()
Indicate if this is an action (rather than a symbol). |
java.lang.String |
label()
Optional label for referring to the part within an action (null for no label). |
java.lang.String |
toString()
Convert to a string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String _label
Constructor Detail |
public production_part(java.lang.String lab)
Method Detail |
public java.lang.String label()
public abstract boolean is_action()
public boolean equals(production_part other)
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |