com.caucho.java
Class ExternalCompiler
java.lang.Object
com.caucho.java.AbstractJavaCompiler
com.caucho.java.ExternalCompiler
- All Implemented Interfaces:
- java.lang.Runnable
public class ExternalCompiler
- extends AbstractJavaCompiler
Compiles Java source, returning the loaded class.
|
Field Summary |
protected static java.util.logging.Logger |
log
|
|
Method Summary |
void |
abort()
Aborts the compilation. |
protected void |
compileInt(java.lang.String[] paths,
LineMap lineMap)
Compile the configured file. |
void |
handleAlarm(Alarm alarm)
This callback should only occur if the compiler freezes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final java.util.logging.Logger log
ExternalCompiler
public ExternalCompiler(JavaCompiler compiler)
compileInt
protected void compileInt(java.lang.String[] paths,
LineMap lineMap)
throws java.io.IOException
- Compile the configured file.
- Specified by:
compileInt in class AbstractJavaCompiler
- Parameters:
path - the path to the java source.lineMap - mapping from the generated source to the original files.
- Throws:
java.io.IOException
handleAlarm
public void handleAlarm(Alarm alarm)
- This callback should only occur if the compiler freezes. In that
case we immediately kill the process.
- Parameters:
alarm - the alarm we've been waiting for.
abort
public void abort()
- Aborts the compilation.
- Overrides:
abort in class AbstractJavaCompiler