Package com.jogamp.gluegen.jcpp
Class SourceIterator
- java.lang.Object
-
- com.jogamp.gluegen.jcpp.SourceIterator
-
-
Constructor Summary
Constructors Constructor Description SourceIterator(Source s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if the enclosed Source has more tokens.Token
next()
Returns the next token from the enclosed Source.void
remove()
Not supported.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SourceIterator
public SourceIterator(@Nonnull Source s)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if the enclosed Source has more tokens. The EOF token is never returned by the iterator.- Specified by:
hasNext
in interfaceIterator<Token>
- Throws:
IllegalStateException
- if the Source throws a LexerException or IOException
-
next
public Token next()
Returns the next token from the enclosed Source. The EOF token is never returned by the iterator.- Specified by:
next
in interfaceIterator<Token>
- Throws:
IllegalStateException
- if the Source throws a LexerException or IOException
-
remove
public void remove()
Not supported.- Specified by:
remove
in interfaceIterator<Token>
- Throws:
UnsupportedOperationException
- unconditionally.
-
-