org.apache.commons.jci.compilers
Class JavacJavaCompiler
java.lang.Object
org.apache.commons.jci.compilers.AbstractJavaCompiler
org.apache.commons.jci.compilers.JavacJavaCompiler
- All Implemented Interfaces:
- org.apache.commons.jci.compilers.JavaCompiler
public final class JavacJavaCompiler
- extends org.apache.commons.jci.compilers.AbstractJavaCompiler
Compiler leveraging the javac from tools.jar. Using byte code rewriting
it is tricked not to read/write from/to disk but use the ResourceReader and
ResourceStore provided instead.
NOTE: (As of now) this compiler only works up until java5. Java6 comes with
a new API based on jsr199. So please use that jsr199 compiler instead.
- Author:
- tcurdt
Fields inherited from class org.apache.commons.jci.compilers.AbstractJavaCompiler |
problemHandler |
Method Summary |
org.apache.commons.jci.compilers.CompilationResult |
compile(java.lang.String[] pSourcePaths,
org.apache.commons.jci.readers.ResourceReader pReader,
org.apache.commons.jci.stores.ResourceStore pStore,
java.lang.ClassLoader pClasspathClassLoader,
org.apache.commons.jci.compilers.JavaCompilerSettings pSettings)
|
org.apache.commons.jci.compilers.JavaCompilerSettings |
createDefaultSettings()
|
Methods inherited from class org.apache.commons.jci.compilers.AbstractJavaCompiler |
compile, compile, setCompilationProblemHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavacJavaCompiler
public JavacJavaCompiler()
JavacJavaCompiler
public JavacJavaCompiler(JavacJavaCompilerSettings pSettings)
compile
public org.apache.commons.jci.compilers.CompilationResult compile(java.lang.String[] pSourcePaths,
org.apache.commons.jci.readers.ResourceReader pReader,
org.apache.commons.jci.stores.ResourceStore pStore,
java.lang.ClassLoader pClasspathClassLoader,
org.apache.commons.jci.compilers.JavaCompilerSettings pSettings)
createDefaultSettings
public org.apache.commons.jci.compilers.JavaCompilerSettings createDefaultSettings()