public class EOFActions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Integer,Action> |
actions
maps lexical states to actions
|
private Action |
defaultAction |
private int |
numLexStates |
| Constructor and Description |
|---|
EOFActions() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Integer state,
Action action)
Add.
|
void |
add(java.util.List<java.lang.Integer> stateList,
Action action)
Add.
|
Action |
getAction(int state)
getAction.
|
Action |
getDefault()
Returns the default action.
|
(package private) boolean |
isEOFAction(java.lang.Object a) |
int |
numActions()
Returns thenumber of
Actions. |
void |
setNumLexStates(int num)
Sets the number of lexical states.
|
private java.util.Map<java.lang.Integer,Action> actions
private Action defaultAction
private int numLexStates
public void setNumLexStates(int num)
num - number of states.public void add(java.util.List<java.lang.Integer> stateList,
Action action)
stateList - a List object.action - a Action object.public void add(java.lang.Integer state,
Action action)
state - a Integer object.action - a Action object.boolean isEOFAction(java.lang.Object a)
public Action getAction(int state)
state - a int.Action object.public int numActions()
Actions.