public class Transition extends Object implements Serializable, Cloneable
A transition, which belongs to a source state, consists of a Unicode character interval and a destination state.
| Constructor and Description |
|---|
Transition(char min,
char max,
State to)
Constructs a new transition.
|
Transition(char c,
State to)
Constructs a new singleton interval transition.
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
clone()
Clones this transition.
|
boolean |
equals(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.
|
String |
toString()
Returns a string describing this state.
|
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 statepublic Transition clone()
public boolean equals(Object obj)
public State getDest()
public char getMax()
public char getMin()
public int hashCode()
public String toString()
Automaton.toString().Copyright © 2001-2017 Anders Møller.