public class SourceIterator extends java.lang.Object implements java.util.Iterator<Token>
| 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.
|
public SourceIterator(@Nonnull Source s)
public boolean hasNext()
hasNext in interface java.util.Iterator<Token>java.lang.IllegalStateException - if the Source
throws a LexerException or IOExceptionpublic Token next()
next in interface java.util.Iterator<Token>java.lang.IllegalStateException - if the Source
throws a LexerException or IOException