Package jflex
Class EOFActions
java.lang.Object
jflex.EOFActions
A simple table to store EOF actions for each lexical state.
- Version:
- JFlex 1.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd.voidAdd.getAction(int state) getAction.Returns the default action.(package private) booleanintReturns thenumber ofActions.voidsetNumLexStates(int num) Sets the number of lexical states.
-
Field Details
-
actions
maps lexical states to actions -
defaultAction
-
numLexStates
private int numLexStates
-
-
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.
-