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