|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava_cup.production_part
java_cup.symbol_part
This class represents a part of a production which is a symbol (terminal or non terminal). This simply maintains a reference to the symbol in question.
production| Field Summary | |
protected symbol |
_the_symbol
The symbol that this part is made up of. |
| Fields inherited from class java_cup.production_part |
_label |
| Constructor Summary | |
symbol_part(symbol sym)
Constructor with no label. |
|
symbol_part(symbol sym,
java.lang.String lab)
Full constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Generic equality comparison. |
boolean |
equals(symbol_part other)
Equality comparison. |
int |
hashCode()
Produce a hash code. |
boolean |
is_action()
Respond that we are not an action part. |
symbol |
the_symbol()
The symbol that this part is made up of. |
java.lang.String |
toString()
Convert to a string. |
| Methods inherited from class java_cup.production_part |
equals, label |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected symbol _the_symbol
| Constructor Detail |
public symbol_part(symbol sym,
java.lang.String lab)
throws internal_error
sym - the symbol that this part is made up of.lab - an optional label string for the part.
public symbol_part(symbol sym)
throws internal_error
sym - the symbol that this part is made up of.| Method Detail |
public symbol the_symbol()
public boolean is_action()
is_action in class production_partpublic boolean equals(symbol_part other)
public boolean equals(java.lang.Object other)
equals in class production_partpublic int hashCode()
hashCode in class production_partpublic java.lang.String toString()
toString in class production_part
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||