JFlex

Class StateSetEnumerator

public final class StateSetEnumerator extends Object

Enumerates the states of a StateSet.
Constructor Summary
StateSetEnumerator()
creates a new StateSetEnumerator that is not yet associated with a StateSet. hasMoreElements() and nextElement() will throw NullPointerException when used before reset()
StateSetEnumerator(StateSet states)
Method Summary
booleanhasMoreElements()
intnextElement()
voidreset(StateSet states)

Constructor Detail

StateSetEnumerator

public StateSetEnumerator()
creates a new StateSetEnumerator that is not yet associated with a StateSet. hasMoreElements() and nextElement() will throw NullPointerException when used before reset()

StateSetEnumerator

public StateSetEnumerator(StateSet states)

Method Detail

hasMoreElements

public boolean hasMoreElements()

nextElement

public int nextElement()

reset

public void reset(StateSet states)