|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJFlex.LexicalStates
public class LexicalStates
Simple symbol table, mapping lexical state names to integers.
| Field Summary | |
|---|---|
(package private) java.util.Vector |
inclusive
codes of inclusive states (subset of states) |
(package private) int |
numStates
number of declared states |
(package private) java.util.Hashtable |
states
maps state name to state number |
| Constructor Summary | |
|---|---|
LexicalStates()
constructs a new lexical state symbol table |
|
| Method Summary | |
|---|---|
java.util.Enumeration |
getInclusiveStates()
returns the code of all inclusive states |
java.lang.Integer |
getNumber(java.lang.String name)
returns the number (code) of a declared state, null if no such state has been declared. |
void |
insert(java.lang.String name,
boolean is_inclusive)
insert a new state declaration |
java.util.Enumeration |
names()
returns the names of all states |
int |
number()
returns the number of declared states |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.Hashtable states
java.util.Vector inclusive
int numStates
| Constructor Detail |
|---|
public LexicalStates()
| Method Detail |
|---|
public void insert(java.lang.String name,
boolean is_inclusive)
public java.lang.Integer getNumber(java.lang.String name)
null if no such state has been declared.
public int number()
public java.util.Enumeration names()
public java.util.Enumeration getInclusiveStates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||