public class LexicalStates extends Object
Constructor and Description |
---|
LexicalStates()
Constructs a new lexical state symbol table.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getInclusiveStates()
Returns the code of all inclusive states.
|
Integer |
getNumber(String name)
Returns the number (code) of a declared state,
null if no such state has been
declared. |
void |
insert(String name,
boolean is_inclusive)
Inserts a new state declaration.
|
Set<String> |
names()
Returns the names of all states.
|
int |
number()
Returns the number of declared states.
|
public LexicalStates()
public void insert(String name, boolean is_inclusive)
name
- a String
object.is_inclusive
- a boolean.public Integer getNumber(String name)
null
if no such state has been
declared.public int number()
Copyright © 1998–2020. All rights reserved.