Package java_cup
Class shift_action
java.lang.Object
java_cup.parse_action
java_cup.shift_action
This class represents a shift action within the parse table.
The action simply stores the state that it shifts to and responds
to queries about its type.
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
-
Field Summary
FieldsFields inherited from class java_cup.parse_action
ERROR, NONASSOC, REDUCE, SHIFT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java_cup.parse_action
equals
-
Field Details
-
_shift_to
The state we shift to.
-
-
Constructor Details
-
shift_action
Simple constructor.- Parameters:
shft_to
- the state that this action shifts to.- Throws:
internal_error
-
-
Method Details
-
shift_to
The state we shift to. -
kind
public int kind()Quick access to type of action.- Overrides:
kind
in classparse_action
-
equals
Equality test. -
equals
Generic equality test.- Overrides:
equals
in classparse_action
-
hashCode
public int hashCode()Compute a hash code.- Overrides:
hashCode
in classparse_action
-
toString
Convert to a string.- Overrides:
toString
in classparse_action
-