Package org.dvare.dynamic.compiler
Class DynamicCompiler
java.lang.Object
org.dvare.dynamic.compiler.DynamicCompiler
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicCompiler
(ClassLoader classLoader) DynamicCompiler
(ClassLoader classLoader, JavaCompiler javaCompiler) DynamicCompiler
(ClassLoader classLoader, JavaCompiler javaCompiler, boolean writeClassFile) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClasspath
(URL path) possibility to add class and jar into classpathvoid
addCompilerOption
(DynamicCompilerOption compilerOption, String compilerOptionVaule) possibility to add javac optionsvoid
void
void
addSource
(JavaFileObject javaFileObject) build()
void
setClasspath
(String classpath)
-
Constructor Details
-
DynamicCompiler
public DynamicCompiler() -
DynamicCompiler
-
DynamicCompiler
-
DynamicCompiler
-
-
Method Details
-
addSource
-
addSource
-
addSource
-
addClasspath
possibility to add class and jar into classpath
- Parameters:
path
- String- Throws:
Exception
-
addCompilerOption
public void addCompilerOption(DynamicCompilerOption compilerOption, String compilerOptionVaule) throws ArgumentNullException possibility to add javac options
- Parameters:
compilerOption
- javac option keycompilerOptionVaule
- javac option value- Throws:
ArgumentNullException
-
build
- Throws:
DynamicCompilerException
-
getErrors
-
getWarnings
-
getClassLoader
-
getClasspath
-
setClasspath
-