Package com.bc.ceres.compiler
Class CodeCompiler
- java.lang.Object
-
- com.bc.ceres.compiler.CodeCompiler
-
public class CodeCompiler extends Object
A Java code compiler.
-
-
Constructor Summary
Constructors Constructor Description CodeCompiler(File outputDir, File[] classPath)
CodeCompiler(JavaCompiler compiler, File outputDir, File[] classPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
compile(Code code)
Class<?>
compile(String packageName, String className, String code)
-
-
-
Constructor Detail
-
CodeCompiler
public CodeCompiler(JavaCompiler compiler, File outputDir, File[] classPath)
-
-
Method Detail
-
compile
public Class<?> compile(String packageName, String className, String code) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
compile
public Class<?> compile(Code code) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-