java_cup
Class parse_action
public class parse_action
extends java.lang.Object
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.
Version:
- Frank Flannery
reduce_action
, shift_action
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.
|
boolean | equals(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.
|
String | toString() - Convert to string.
|
ERROR
public static final int ERROR
Constant for action type -- error action.
- 0
NONASSOC
public static final int NONASSOC
Constants for action type -- reduce action.
- 3
REDUCE
public static final int REDUCE
Constants for action type -- reduce action.
- 2
SHIFT
public static final int SHIFT
Constant for action type -- shift action.
- 1
parse_action
public parse_action()
Simple constructor.
equals
public boolean equals(Object other)
Generic equality test.
equals
public boolean equals(parse_action other)
Equality test.
hashCode
public int hashCode()
Compute a hash code.
kind
public int kind()
Quick access to the type -- base class defaults to error.
toString
public String toString()
Convert to string.