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, token
public InputLexerSource(InputStream input) throws IOException
IOException
public String getPath()
Source
FileLexerSource
, 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