Package jflex.core
Class EOFActions
java.lang.Object
jflex.core.EOFActions
A simple table to store EOF actions for each lexical state.
- Version:
- JFlex 1.9.1
- Author:
- Gerwin Klein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd.voidAdd.getAction(int state) getAction.Returns the default action.booleanintReturns thenumber ofActions.voidsetNumLexStates(int num) Sets the number of lexical states.
-
Constructor Details
-
EOFActions
public EOFActions()
-
-
Method Details
-
setNumLexStates
public void setNumLexStates(int num) Sets the number of lexical states.- Parameters:
num- number of states.
-
add
Add. -
add
Add. -
isEOFAction
-
getAction
getAction.- Parameters:
state- a int.- Returns:
- a
Actionobject.
-
getDefault
Returns the default action.- Returns:
- a default
Action.
-
numActions
public int numActions()Returns thenumber ofActions.- Returns:
- number of actions.
-