|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.automaton.Transition
public class Transition
Automaton transition.
A transition, which belongs to a source state, consists of a Unicode character interval and a destination state.
Constructor Summary | |
---|---|
Transition(char min,
char max,
State to)
Constructs a new transition. |
|
Transition(char c,
State to)
Constructs a new singleton interval transition. |
Method Summary | |
---|---|
Transition |
clone()
Clones this transition. |
boolean |
equals(java.lang.Object obj)
Checks for equality. |
State |
getDest()
Returns destination of this transition. |
char |
getMax()
Returns maximum of this transition interval. |
char |
getMin()
Returns minimum of this transition interval. |
int |
hashCode()
Returns hash code. |
java.lang.String |
toString()
Returns a string describing this state. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Transition(char min, char max, State to)
min
- transition interval minimummax
- transition interval maximumto
- destination statepublic Transition(char c, State to)
c
- transition characterto
- destination stateMethod Detail |
---|
public Transition clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to compare with
public State getDest()
public char getMax()
public char getMin()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
Automaton.toString()
.
toString
in class java.lang.Object
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |