|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.duelengine.duel.parsing.DuelLexer
public class DuelLexer
Processes source text into a token sequence
| Constructor Summary | |
|---|---|
DuelLexer(Reader reader)
Ctor |
|
DuelLexer(String text)
Ctor |
|
| Method Summary | |
|---|---|
void |
clearLastError()
Clears the last error |
int |
getColumn()
Gets the current column within the input |
int |
getIndex()
Gets the current index within the input |
Throwable |
getLastError()
Returns the last exception encountered |
int |
getLine()
Gets the current line within the input |
boolean |
hasNext()
Determines if any more tokens are available |
DuelToken |
next()
Returns the next token in the input |
void |
remove()
Altering the input is not supported |
ArrayList<DuelToken> |
toList()
Produces a list of the remaining tokens |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DuelLexer(String text)
text - public DuelLexer(Reader reader)
reader - | Method Detail |
|---|
public int getLine()
public int getColumn()
public int getIndex()
public Throwable getLastError()
public void clearLastError()
public boolean hasNext()
hasNext in interface Iterator<DuelToken>public DuelToken next()
next in interface Iterator<DuelToken>
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<DuelToken>UnsupportedOperationExceptionpublic ArrayList<DuelToken> toList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||