Package jflex
Class CharSetEnumerator
java.lang.Object
jflex.CharSetEnumerator
Enumerator for the elements of a CharSet.
Does not implement java.util.Enumeration, but supports the same protocol.
- Version:
- JFlex 1.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
advance()
boolean
Returns whether the iterator has more characters.int
Returns the next character.
-
Field Details
-
index
private int index -
offset
private int offset -
mask
private long mask -
set
-
-
Constructor Details
-
CharSetEnumerator
Constructor for CharSetEnumerator.- Parameters:
characters
- set of characters.
-
-
Method Details
-
advance
private void advance() -
hasMoreElements
public boolean hasMoreElements()Returns whether the iterator has more characters.- Returns:
- whether the iterator has more elements.
-
nextElement
public int nextElement()Returns the next character.- Returns:
- character.
-