|
|||||||||
| Home >> All >> [ java_cup overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java_cup
Class symbol_part

java.lang.Objectjava_cup.production_part
java_cup.symbol_part
- public class symbol_part
- extends production_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.
- Version:
- last updated: 11/25/95
| 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 |
_the_symbol
protected symbol _the_symbol
- The symbol that this part is made up of.
| Constructor Detail |
symbol_part
public symbol_part(symbol sym, java.lang.String lab) throws internal_error
- Full constructor.
symbol_part
public symbol_part(symbol sym) throws internal_error
- Constructor with no label.
| Method Detail |
the_symbol
public symbol the_symbol()
- The symbol that this part is made up of.
is_action
public boolean is_action()
- Respond that we are not an action part.
- Specified by:
is_actionin classproduction_part
equals
public boolean equals(symbol_part other)
- Equality comparison.
equals
public boolean equals(java.lang.Object other)
- Generic equality comparison.
- Overrides:
equalsin classproduction_part
hashCode
public int hashCode()
- Produce a hash code.
- Overrides:
hashCodein classproduction_part
toString
public java.lang.String toString()
- Convert to a string.
- Overrides:
toStringin classproduction_part
|
|||||||||
| Home >> All >> [ java_cup overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC