| java.lang.Object java_cup.parse_action
All known Subclasses: java_cup.shift_action, java_cup.reduce_action, java_cup.nonassoc_action,
parse_action | public class parse_action (Code) | | This class serves as the base class for entries in a parse action table.
Full entries will either be SHIFT(state_num), REDUCE(production), NONASSOC,
or ERROR. Objects of this base class will default to ERROR, while
the other three types will be represented by subclasses.
See Also: java_cup.reduce_action See Also: java_cup.shift_action version: last updated: 7/2/96 author: Frank Flannery |
Field Summary | |
final public static int | ERROR Constant for action type -- error action. | final public static int | NONASSOC Constants for action type -- reduce action. | final public static int | REDUCE Constants for action type -- reduce action. | final public static int | SHIFT Constant for action type -- shift action. |
Constructor Summary | |
public | parse_action() Simple constructor. |
Method Summary | |
public boolean | equals(parse_action other) Equality test. | public boolean | equals(Object other) Generic equality test. | public int | hashCode() Compute a hash code. | public int | kind() Quick access to the type -- base class defaults to error. | public String | toString() Convert to string. |
ERROR | final public static int ERROR(Code) | | Constant for action type -- error action.
|
NONASSOC | final public static int NONASSOC(Code) | | Constants for action type -- reduce action.
|
REDUCE | final public static int REDUCE(Code) | | Constants for action type -- reduce action.
|
SHIFT | final public static int SHIFT(Code) | | Constant for action type -- shift action.
|
parse_action | public parse_action()(Code) | | Simple constructor.
|
equals | public boolean equals(Object other)(Code) | | Generic equality test.
|
hashCode | public int hashCode()(Code) | | Compute a hash code.
|
kind | public int kind()(Code) | | Quick access to the type -- base class defaults to error.
|
|
|