| java.lang.Object ro.infoiasi.donald.compiler.lexer.DFA
DFA | public class DFA implements Cloneable(Code) | | Deterministic Finite Automata
|
Constructor Summary | |
public | DFA() | public | DFA(DFA d) Constructs a DFA that is a copy of the specified DFA. | public | DFA(int stateNo, int startState, Alphabet alpha, int delta, int finalStates) Constructs a DFA with specified components. | public | DFA(RTS r) |
DFA | public DFA()(Code) | | Constructs an empty DFA
|
DFA | public DFA(DFA d)(Code) | | Constructs a DFA that is a copy of the specified DFA.
|
DFA | public DFA(RTS r)(Code) | | Constructs a DFA starting from a Regular Transitionl System
|
clone | public Object clone()(Code) | | Creates and returns a copy of this object
|
getAlphabet | public Alphabet getAlphabet()(Code) | | Returns a clone of the Alphabet of this DFA
|
getDelta | public int[][] getDelta()(Code) | | Returns the transition function table
|
getFinalStates | public Set getFinalStates()(Code) | | Returns the set of final states
|
getStartState | public Integer getStartState()(Code) | | Returns the starting state of this DFA
|
getStateNo | public int getStateNo()(Code) | | Returns the number of states of this DFA
|
isEmpty | public boolean isEmpty()(Code) | | Returns true if this DFA has zero states
|
print | public void print()(Code) | | Prints the DFA. [Debuging purpose]
|
toString | public String toString()(Code) | | Returns a string representation of this DFA
|
|
|