|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava_cup.parse_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), NONASSOC, or ERROR. Objects of this base class will default to ERROR, while the other three types will be represented by subclasses.
reduce_action
,
shift_action
Field Summary | |
static int |
ERROR
Constant for action type -- error action. |
static int |
NONASSOC
Constants for action type -- reduce action. |
static int |
REDUCE
Constants for action type -- reduce action. |
static int |
SHIFT
Constant for action type -- shift action. |
Constructor Summary | |
parse_action()
Simple constructor. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Generic equality test. |
boolean |
equals(parse_action other)
Equality test. |
int |
hashCode()
Compute a hash code. |
int |
kind()
Quick access to the type -- base class defaults to error. |
java.lang.String |
toString()
Convert to string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ERROR
public static final int SHIFT
public static final int REDUCE
public static final int NONASSOC
Constructor Detail |
public parse_action()
Method Detail |
public int kind()
public boolean equals(parse_action other)
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |