com.caucho.java
Class InternalCompiler2

java.lang.Object
  extended by com.caucho.java.AbstractJavaCompiler
      extended by com.caucho.java.InternalCompiler2
All Implemented Interfaces:
java.lang.Runnable

public class InternalCompiler2
extends AbstractJavaCompiler

Experimental internal compiler API using JDK 1.6 JavaCompiler. Based on initial tests, the performance difference does not seem to be large.


Field Summary
 
Fields inherited from class com.caucho.java.AbstractJavaCompiler
_compiler, L
 
Constructor Summary
InternalCompiler2(JavaCompilerUtil compiler)
           
 
Method Summary
protected  void compileInt(java.lang.String[] path, LineMap lineMap)
          Compile the configured file.
protected  Path getClassDir()
           
 
Methods inherited from class com.caucho.java.AbstractJavaCompiler
abort, getException, isDone, notifyComplete, run, setLineMap, setPath, waitForComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalCompiler2

public InternalCompiler2(JavaCompilerUtil compiler)
Method Detail

compileInt

protected void compileInt(java.lang.String[] path,
                          LineMap lineMap)
                   throws java.io.IOException,
                          JavaCompileException
Description copied from class: AbstractJavaCompiler
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
JavaCompileException

getClassDir

protected Path getClassDir()