Class SourceIterator
java.lang.Object
io.github.douira.glsl_preprocessor.SourceIterator
-
Constructor Details
-
SourceIterator
-
-
Method Details
-
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
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.
-