public abstract class AbstractReaderSource extends Object implements ReaderSource
| Modifier and Type | Field and Description | 
|---|---|
protected CompilerConfiguration | 
configuration  | 
| Constructor and Description | 
|---|
AbstractReaderSource(CompilerConfiguration configuration)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReaderprotected CompilerConfiguration configuration
public AbstractReaderSource(CompilerConfiguration configuration)
public boolean canReopenSource()
canReopenSource in interface ReaderSourcepublic String getLine(int lineNumber, Janitor janitor)
getLine in interface ReaderSourcelineNumber - the number of the line of interestjanitor - helper to clean up afterwardspublic void cleanup()
cleanup in interface HasCleanupcleanup in interface ReaderSource