Package java_cup
Class parse_action
java.lang.Object
java_cup.parse_action
- Direct Known Subclasses:
reduce_action
,shift_action
This class serves as the base class for entries in a parse action table.
Full entries will either be SHIFT(state_num), REDUCE(production), or ERROR.
Objects of this base class will default to ERROR, while the other two
types will be represented by subclasses.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ERROR
public static final int ERRORConstant for action type -- error action.- See Also:
-
SHIFT
public static final int SHIFTConstant for action type -- shift action.- See Also:
-
REDUCE
public static final int REDUCEConstants for action type -- reduce action.- See Also:
-
-
Constructor Details
-
parse_action
public parse_action()Simple constructor.
-
-
Method Details
-
kind
public int kind()Quick access to the type -- base class defaults to error. -
equals
Equality test. -
equals
Generic equality test. -
hashCode
public int hashCode()Compute a hash code. -
toString
Convert to string.
-