| Constructor and Description |
|---|
DuelLexer(Reader input)
Ctor
|
DuelLexer(String text)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public DuelLexer(String text)
text - public DuelLexer(Reader input)
input - public int getLine()
public int getColumn()
public int getIndex()
public Throwable getLastError()
public void clearLastError()
public boolean hasNext()
public DuelToken next()
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<DuelToken>UnsupportedOperationExceptionCopyright © 2014. All rights reserved.