|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava_cup.production_part
java_cup.action_part
This class represents a part of a production which contains an action. These are eventually eliminated from productions and converted to trailing actions by factoring out with a production that derives the empty string (and ends with this action).
production| Field Summary | |
protected java.lang.String |
_code_string
String containing code for the action in question. |
| Fields inherited from class java_cup.production_part |
_label |
| Constructor Summary | |
action_part(java.lang.String code_str)
Simple constructor. |
|
| Method Summary | |
java.lang.String |
code_string()
String containing code for the action in question. |
boolean |
equals(action_part other)
Equality comparison for properly typed object. |
boolean |
equals(java.lang.Object other)
Generic equality comparison. |
int |
hashCode()
Produce a hash code. |
boolean |
is_action()
Override to report this object as an action. |
void |
set_code_string(java.lang.String new_str)
Set the code string. |
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 java.lang.String _code_string
| Constructor Detail |
public action_part(java.lang.String code_str)
code_str - string containing the actual user code.| Method Detail |
public java.lang.String code_string()
public void set_code_string(java.lang.String new_str)
public boolean is_action()
is_action in class production_partpublic boolean equals(action_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 | |||||||||