public abstract class BaseSources extends Object implements Sources
Sources
.Constructor and Description |
---|
BaseSources()
constructor.
|
Modifier and Type | Method and Description |
---|---|
CompilerFactory |
getCompilerFactory()
gets the compiler factory that should be used to compile the sources.
|
long |
getLastModified()
updates the source set, if necessary, and returns the last modified
of when last found changed.
|
String |
getName()
gets the name of the sources.
|
Set<Source> |
getSourceSet()
updates the source set, if necessary, and returns it.
|
protected abstract Set<Source> |
getSourceSetNew()
gets the updated source set.
|
void |
init(String name,
CompilerFactory compilerFactory,
long latencyMs)
initialize.
|
String |
toString()
returns a string suitable for logging.
|
public void init(String name, CompilerFactory compilerFactory, long latencyMs)
name
- sources namecompilerFactory
- compiler factorylatencyMs
- latency in milliseconds for updatingprotected abstract Set<Source> getSourceSetNew()
public Set<Source> getSourceSet()
Sources
getSourceSet
in interface Sources
public long getLastModified()
Sources
You should not rely on this number to increase monotonically or even to represent an actual date and time, but instead consider the sources changed each time this method returns a different value.
getLastModified
in interface Sources
public String getName()
Sources
public CompilerFactory getCompilerFactory()
Sources
getCompilerFactory
in interface Sources