Method Summary |
|
public void | addTransition(int state, int nextstate) Add a state as destination to the transition. |
public int | getFinalState() |
public int | getFirstState() Return the first state of the automaton. |
public int | getGroupCount() Return the count of groups. |
public int | getGroupIndex(int state) Return the index of a group for a transition.
Parameters: state - Index of state. |
public char | getIntervalBegin(int state) Return the begin of the character interval.
Parameters: state - Index of state. |
public char | getIntervalEnd(int state) Return the end of the character interval.
Parameters: state - Index of state. |
public int | getStateCount() |
public int[] | getTransitions(int state) Returns the destinations of the transition. |
public int | getType(int state) Return the type of transition.
Parameters: state - Index of state. |
public boolean | isFinalState(int state) |
public void | setFinalState(int finalstate) Set the final state. |
public void | setFirstState(int firststate) Set the first state of the automaton. |
public void | setGroupCount(int groupcount) Set the count of groups. |
public void | setGroupIndex(int state, int groupindex) Set the group index for a transition. |
public void | setInterval(int state, char begin, char end) Set the character interval, which the processor should matches against. |
public void | setTransitions(int state, int[] transitions) Set the destination states for a transition. |
public void | setType(int state, int type) Set the of of transition. |
public String | toString() Return a string representation of the automaton. |