|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegexTable
High level interface of a lexer automaton.
Method Summary | |
---|---|
boolean |
accept(int state)
Tests if the state is or not an accept state. |
int |
getStart()
Returns the index of the start state. |
int |
getStateNumber()
Returns the number of state of the whole automaton. |
int |
getTransition(int state,
int next)
Returns the index of the following state from the state state with the letter next. |
boolean |
noOut(int state)
Returns if the state pass as srgument is a sink state. |
Method Detail |
---|
int getStart()
int getTransition(int state, int next)
state
- previous statenext
- letter to read
boolean accept(int state)
state
- the state
int getStateNumber()
boolean noOut(int state)
state
- the state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |