|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.java.AbstractJavaCompiler
public abstract class AbstractJavaCompiler
Compiles Java source, returning the loaded class.
| Field Summary | |
|---|---|
protected JavaCompilerUtil |
_compiler
|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
AbstractJavaCompiler(JavaCompilerUtil compiler)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
protected static final java.util.logging.Logger log
protected JavaCompilerUtil _compiler
| Constructor Detail |
|---|
public AbstractJavaCompiler(JavaCompilerUtil compiler)
| Method Detail |
|---|
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.Runnableprotected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||