JFlex

Class StateSetEnumerator


public final class StateSetEnumerator
extends java.lang.Object

Enumerates the states of a StateSet.

Constructor Summary

StateSetEnumerator()
creates a new StateSetEnumerator that is not yet associated with a StateSet.
StateSetEnumerator(StateSet states)

Method Summary

boolean
hasMoreElements()
int
nextElement()
void
reset(StateSet states)

Constructor Details

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 Details

hasMoreElements

public boolean hasMoreElements()

nextElement

public int nextElement()

reset

public void reset(StateSet states)