Package java_cup
Class action_part
java.lang.Object
java_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).
- Version:
- last update: 11/25/95
- Author:
- Scott Hudson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringString containing code for the action in question.Fields inherited from class java_cup.production_part
_label -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString containing code for the action in question.booleanequals(action_part other) Equality comparison for properly typed object.booleanGeneric equality comparison.inthashCode()Produce a hash code.booleanOverride to report this object as an action.voidset_code_string(String new_str) Set the code string.toString()Convert to a string.Methods inherited from class java_cup.production_part
equals, label
-
Field Details
-
_code_string
String containing code for the action in question.
-
-
Constructor Details
-
action_part
Simple constructor.- Parameters:
code_str- string containing the actual user code.
-
-
Method Details
-
code_string
String containing code for the action in question. -
set_code_string
Set the code string. -
is_action
public boolean is_action()Override to report this object as an action.- Specified by:
is_actionin classproduction_part
-
equals
Equality comparison for properly typed object. -
equals
Generic equality comparison.- Overrides:
equalsin classproduction_part
-
hashCode
public int hashCode()Produce a hash code.- Overrides:
hashCodein classproduction_part
-
toString
Convert to a string.- Overrides:
toStringin classproduction_part
-