Package org.kie.memorycompiler.jdknative
Class NativeJavaCompiler
java.lang.Object
org.kie.memorycompiler.AbstractJavaCompiler
org.kie.memorycompiler.jdknative.NativeJavaCompiler
- All Implemented Interfaces:
JavaCompiler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.kie.memorycompiler.JavaCompiler
JavaCompiler.CompilerHolder -
Field Summary
Fields inherited from interface org.kie.memorycompiler.JavaCompiler
DUMP_GENERATED_CLASSES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader, JavaCompilerSettings pSettings) Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class".factory method to create the underlying default settingsMethods inherited from class org.kie.memorycompiler.AbstractJavaCompiler
compile, compile, setJavaCompilerSettingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.memorycompiler.JavaCompiler
setSourceFolder
-
Constructor Details
-
NativeJavaCompiler
public NativeJavaCompiler()
-
-
Method Details
-
createDefaultSettings
Description copied from interface:JavaCompilerfactory method to create the underlying default settings -
compile
public CompilationResult compile(String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader, JavaCompilerSettings pSettings) Description copied from interface:JavaCompilerCompiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class". Note: As these are resource path you always have to use "/" The result of the compilation run including detailed error information is returned as CompilationResult. If you need to get notified already during the compilation process you can register a CompilationProblemHandler. Note: Not all compilers might support this notification mechanism.- Returns:
- always a CompilationResult
-