Package jflex.scanner
Class LexicalStates
java.lang.Object
jflex.scanner.LexicalStates
Simple symbol table, mapping lexical state names to integers.
- Version:
- JFlex 1.8.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
states
maps state name to state number -
inclusive
codes of inclusive states (subset of states) -
numStates
int numStatesnumber of declared states
-
-
Constructor Details
-
LexicalStates
public LexicalStates()Constructs a new lexical state symbol table.
-
-
Method Details
-
insert
Inserts a new state declaration.- Parameters:
name
- aString
object.is_inclusive
- a boolean.
-
getNumber
Returns the number (code) of a declared state,null
if no such state has been declared. -
number
public int number()Returns the number of declared states.- Returns:
- the number of declared states.
-
names
Returns the names of all states.- Returns:
- the names of all states.
-
getInclusiveStates
Returns the code of all inclusive states.- Returns:
- the code of all inclusive states.
-