public class ClassCompiler
extends java.lang.Object
getInstance() method.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
compilerOptions |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(java.util.List<java.io.File> classPath,
javax.tools.JavaFileObject... files)
This method compiles multiple java files at runtime.
|
static ClassCompiler |
getInstance()
Obtains the instance of the ClassCompiler
|
public static final java.lang.String compilerOptions
public void compile(java.util.List<java.io.File> classPath,
javax.tools.JavaFileObject... files)
throws CompilationFailedException,
java.io.IOException
classPath - The classpath of the applicationfiles - The java files to be compiledjava.io.IOException - If the file cannot be accessedCompilationFailedException - It's thrown when the file have source code errors.public static ClassCompiler getInstance()
ClassCompiler