|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmorfologik.fsa.FSAFinalStatesIterator
public final class FSAFinalStatesIterator
An iterator that traverses the right language of a given node (all sequences reachable from a given node).
Constructor Summary | |
---|---|
FSAFinalStatesIterator(FSA fsa,
int node)
Create an instance of the iterator for a given node. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there are still elements in this iterator. |
java.nio.ByteBuffer |
next()
|
void |
remove()
Not implemented in this iterator. |
void |
restartFrom(int node)
Restart walking from node . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSAFinalStatesIterator(FSA fsa, int node)
Method Detail |
---|
public void restartFrom(int node)
node
. Allows iterator reuse.
public boolean hasNext()
true
if there are still elements in this iterator.
hasNext
in interface java.util.Iterator<java.nio.ByteBuffer>
public java.nio.ByteBuffer next()
next
in interface java.util.Iterator<java.nio.ByteBuffer>
ByteBuffer
with the sequence corresponding to
the next final state in the automaton.public void remove()
remove
in interface java.util.Iterator<java.nio.ByteBuffer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |