|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
For ReaderSources that can choose a parent class, a base that provides common functionality.
Field Summary | |
---|---|
CompilerConfiguration |
configuration
|
String |
line
|
BufferedReader |
lineSource
|
int |
number
|
Constructor Summary | |
AbstractReaderSource(CompilerConfiguration configuration)
|
Method Summary | |
---|---|
boolean |
canReopenSource()
Returns true if the source can be restarted (ie. if getReader() will return non-null on subsequent calls. |
void |
cleanup()
Cleans up any cached resources used by getLine(). |
String |
getLine(int lineNumber, Janitor janitor)
Returns a line from the source, or null, if unavailable. |
Constructor Detail |
---|
public AbstractReaderSource(CompilerConfiguration configuration)
Method Detail |
---|
public boolean canReopenSource()
public void cleanup()
public String getLine(int lineNumber, Janitor janitor)