Class reduce_action
java.lang.Object
java_cup.parse_action
java_cup.reduce_action
This class represents a reduce action within the parse table.
The action simply stores the production that it reduces with and
responds to queries about its type.
-
Field Summary
FieldsFields inherited from class parse_action
ERROR, REDUCE, SHIFT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(reduce_action other) Equality test.booleanGeneric equality test.inthashCode()Compute a hash code.intkind()Quick access to type of action.The production we reduce with.toString()Convert to string.Methods inherited from class parse_action
equals
-
Field Details
-
_reduce_with
The production we reduce with.
-
-
Constructor Details
-
reduce_action
Simple constructor.- Parameters:
prod- the production this action reduces with.- Throws:
internal_error
-
-
Method Details
-
reduce_with
The production we reduce with. -
kind
-
equals
Equality test. -
equals
-
hashCode
-
toString
-