public class InputLexerSource extends LexerSource
Source which lexes a file.
The input is buffered.Source| Constructor and Description |
|---|
InputLexerSource(InputStream input)
Creates a new Source for lexing the given Reader.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the human-readable name of the current Source.
|
String |
getPath()
Returns the File currently being lexed.
|
String |
toString() |
close, 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