|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.fsa.bytes.State
public final class State
DFSA state with byte labels on transitions.
| Constructor Summary | |
|---|---|
State()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Two states are equal if: they have an identical number of outgoing transitions, labeled with the same labels, transitions have identical final flags, corresponding outgoing transitions lead to the same states (to states with an identical right-language). |
State |
getState(byte label)
Returns the target state of a transition leaving this state and labeled with label. |
State[] |
getStates()
Returns an array of outgoing transitions from this state. |
byte[] |
getTransitionLabels()
Returns an array of outgoing transition labels. |
boolean |
hasChildren()
Return true if this state has any children (outgoing
transitions). |
int |
hashCode()
Compute the hash code of the current status of this state. |
void |
postOrder(Visitor<? super State> v)
Visit all sub-states in post-order. |
void |
preOrder(Visitor<? super State> v)
Visit all sub-states in pre-order. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State()
| Method Detail |
|---|
public State getState(byte label)
label. If no such transition exists, returns
null.
public byte[] getTransitionLabels()
getStates().
public State[] getStates()
public boolean equals(Object obj)
equals in class Objectpublic boolean hasChildren()
true if this state has any children (outgoing
transitions).
public int hashCode()
hashCode in class Objectpublic void postOrder(Visitor<? super State> v)
postOrder in interface Traversable<State>public void preOrder(Visitor<? super State> v)
preOrder in interface Traversable<State>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||