|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.lexer.rules.DFA
public class DFA
This class represents a cursor on an automaton defined
by an object of the class RegexTable
.
Nested Class Summary | |
---|---|
static class |
DFA.ReturnCode
Return code of the method step(int) of the DFA. |
Constructor Summary | |
---|---|
DFA()
Creates an empty DFA that must be initialized thru a call to reset(RegexTable) . |
|
DFA(RegexTable table)
Creates a DFA. |
Method Summary | |
---|---|
RegexTable |
getTable()
Returns the automaton table. |
void |
reset()
Reset the current DFA. |
void |
reset(RegexTable table)
Reuse the current DFA with a new automaton. |
DFA.ReturnCode |
step(int a)
Follows the transition from the current state with the letter a. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DFA()
reset(RegexTable)
.
public DFA(RegexTable table)
table
- the automaton table.Method Detail |
---|
public void reset(RegexTable table)
table
- the automaton table.public void reset()
public DFA.ReturnCode step(int a)
a
- the letter
RegexTable.getTransition(int, int)
public String toString()
toString
in class Object
public RegexTable getTable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |