Closeable, AutoCloseable, Iterable<Token>FileLexerSource, InputLexerSource, StringLexerSourcepublic class LexerSource extends Source
| Constructor | Description |
|---|---|
LexerSource(Reader r,
boolean ppvalid) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
getColumn() |
Returns the current column number within this Source.
|
int |
getLine() |
Returns the current line number within this Source.
|
Token |
token() |
Returns the next Token parsed from this input stream.
|
forEach, spliteratorpublic LexerSource(Reader r, boolean ppvalid)
public int getLine()
Sourcepublic int getColumn()
Sourcepublic Token token() throws IOException, LexerException
Sourcetoken in class SourceIOExceptionLexerExceptionTokenpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class SourceIOException