public abstract class AbstractJavaCompiler
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected JavaCompilerUtil |
_compiler |
protected static L10N |
L |
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
AbstractJavaCompiler(JavaCompilerUtil compiler) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Quit the compilation.
|
protected abstract void |
compileInt(java.lang.String[] path,
LineMap lineMap)
Compile the configured file.
|
java.lang.Throwable |
getException()
Returns any compile exception.
|
boolean |
isDone()
Returns true when the compilation is done.
|
protected void |
notifyComplete() |
void |
run()
runs the compiler.
|
void |
setLineMap(LineMap lineMap)
Sets the LineMap for the file
|
void |
setPath(java.lang.String[] path)
Sets the path of files to compile.
|
protected void |
waitForComplete(long timeout) |
protected static final L10N L
protected static final java.util.logging.Logger log
protected JavaCompilerUtil _compiler
public AbstractJavaCompiler(JavaCompilerUtil compiler)
public void setPath(java.lang.String[] path)
public void setLineMap(LineMap lineMap)
public java.lang.Throwable getException()
public boolean isDone()
public void run()
run
in interface java.lang.Runnable
protected final void waitForComplete(long timeout)
protected void notifyComplete()
public void abort()
protected abstract void compileInt(java.lang.String[] path, LineMap lineMap) throws java.io.IOException
path
- the path to the java source.lineMap
- mapping from the generated source to the original files.java.io.IOException