Package jflex.core
Class EOFActions
- java.lang.Object
-
- jflex.core.EOFActions
-
public class EOFActions extends Object
A simple table to store EOF actions for each lexical state.- Version:
- JFlex 1.8.2
- Author:
- Gerwin Klein
-
-
Constructor Summary
Constructors Constructor Description EOFActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Integer state, Action action)Add.voidadd(List<Integer> stateList, Action action)Add.ActiongetAction(int state)getAction.ActiongetDefault()Returns the default action.booleanisEOFAction(Object a)intnumActions()Returns thenumber ofActions.voidsetNumLexStates(int num)Sets the number of lexical states.
-
-
-
Method Detail
-
setNumLexStates
public void setNumLexStates(int num)
Sets the number of lexical states.- Parameters:
num- number of states.
-
isEOFAction
public boolean isEOFAction(Object a)
-
getAction
public Action getAction(int state)
getAction.- Parameters:
state- a int.- Returns:
- a
Actionobject.
-
numActions
public int numActions()
Returns thenumber ofActions.- Returns:
- number of actions.
-
-