Package foundry.veil.lib.anarres.cpp
Class SourceIterator
java.lang.Object
foundry.veil.lib.anarres.cpp.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:
hasNext
in 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:
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.
-