Constructor and Description |
---|
SourceIterator(Source s) |
Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SourceIterator(Source s)
public boolean hasNext()
hasNext
in interface Iterator<Token>
IllegalStateException
- if the Source
throws a LexerException or IOExceptionpublic Token next()
next
in interface Iterator<Token>
IllegalStateException
- if the Source
throws a LexerException or IOException