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.8.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add.void
Add.getAction
(int state) getAction.Returns the default action.boolean
int
Returns thenumber ofAction
s.void
setNumLexStates
(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
Action
object.
-
getDefault
Returns the default action.- Returns:
- a default
Action
.
-
numActions
public int numActions()Returns thenumber ofAction
s.- Returns:
- number of actions.
-