|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.parser.java_cup.production_part
weka.core.parser.java_cup.symbol_part
public class 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| 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 weka.core.parser.java_cup.production_part |
|---|
equals, label |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 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.
internal_error
public symbol_part(symbol sym)
throws internal_error
sym - the symbol that this part is made up of.
internal_error| 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 | |||||||||