|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.anarres.cpp.SourceIterator
public class SourceIterator
An Iterator for Sources,
returning Tokens.
| Constructor Summary | |
|---|---|
SourceIterator(Source s)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceIterator(Source s)
| Method Detail |
|---|
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 IOExceptionpublic void remove()
remove in interface Iterator<Token>UnsupportedOperationException.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||