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.1
- Author:
- Gerwin Klein
-
-
Constructor Summary
Constructors Constructor Description EOFActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Integer state, Action action)
Add.void
add(List<Integer> stateList, Action action)
Add.Action
getAction(int state)
getAction.Action
getDefault()
Returns the default action.boolean
isEOFAction(Object a)
int
numActions()
Returns thenumber ofAction
s.void
setNumLexStates(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
Action
object.
-
numActions
public int numActions()
Returns thenumber ofAction
s.- Returns:
- number of actions.
-
-