| Constructor | Description |
|---|---|
SourceIterator(Source s) |
| 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.
|
forEachRemainingpublic 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