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 booleanhasNext()Returns true if the enclosed Source has more tokens.Tokennext()Returns the next token from the enclosed Source.voidremove()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:
hasNextin 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:
nextin interfaceIterator<Token>- Throws:
IllegalStateException- if the Source throws a LexerException or IOException
-
remove
public void remove()
Not supported.- Specified by:
removein interfaceIterator<Token>- Throws:
UnsupportedOperationException- unconditionally.
-
-