|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.fsa.core.FSAFinalStatesIterator
public final class FSAFinalStatesIterator
An iterator that traverses all final states reachable
from a given FSA.Node and returns String objects
corresponding to final states.
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are still elements in this iterator. |
java.lang.Object |
next()
Overriden from Iterator. |
byte[] |
nextState()
Returns the next available element. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasNext()
true if there are still elements in this iterator.
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
Iterator. Use nextState() if you
can to avoid cast.
next in interface java.util.Iteratorbyte[] with the next final state
in the automaton.public byte[] nextState()
java.util.NoSuchElementException - If this method is called after hasNext()
returned false.public final void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||