Closeable, AutoCloseable, Iterable<Token>public class InputLexerSource extends LexerSource
Source which lexes a file.
The input is buffered.Source| Constructor | Description |
|---|---|
InputLexerSource(InputStream input) |
Creates a new Source for lexing the given Reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getName() |
Returns the human-readable name of the current Source.
|
String |
getPath() |
Returns the File currently being lexed.
|
String |
toString() |
forEach, spliteratorclose, getColumn, getLine, tokenpublic InputLexerSource(InputStream input) throws IOException
IOExceptionpublic String getPath()
SourceFileLexerSource, then
it will ask the parent Source, and so forth recursively.
If no Source on the stack is a FileLexerSource, returns null.public String getName()
Source