Package org.kie.memorycompiler
Class KieMemoryCompiler
java.lang.Object
org.kie.memorycompiler.KieMemoryCompiler
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncompile(Map<String, String> classNameSourceMap, ClassLoader classLoader) Compile the given sources without adding compiled classes to the givenClassLoaderclassNameSourceMap' key must be the FQDN of the class to compilecompile(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings) Compile the given sources without adding compiled classes to the givenClassLoaderclassNameSourceMap' key must be the FQDN of the class to compile.compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader) Compile the given sources and returns the generated byte codescompileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings) Compile the given sources and returns the generated byte codes.compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings, JavaConfiguration.CompilerType compilerType) Compile the given sources and returns the generated byte codes.compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaConfiguration.CompilerType compilerType) Compile the given sources and returns the generated byte codes
-
Method Details
-
compile
public static Map<String,Class<?>> compile(Map<String, String> classNameSourceMap, ClassLoader classLoader) Compile the given sources without adding compiled classes to the givenClassLoaderclassNameSourceMap' key must be the FQDN of the class to compile- Parameters:
classNameSourceMap-classLoader-- Returns:
-
compile
public static Map<String,Class<?>> compile(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings) Compile the given sources without adding compiled classes to the givenClassLoaderclassNameSourceMap' key must be the FQDN of the class to compile. Additional compiler settings can be provided using JavaCompilerSettings- Parameters:
classNameSourceMap-classLoader-compilerSettings-- Returns:
-
compileNoLoad
public static Map<String,byte[]> compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader) Compile the given sources and returns the generated byte codes- Parameters:
classNameSourceMap-classLoader-- Returns:
-
compileNoLoad
public static Map<String,byte[]> compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaConfiguration.CompilerType compilerType) Compile the given sources and returns the generated byte codes- Parameters:
classNameSourceMap-classLoader-- Returns:
-
compileNoLoad
public static Map<String,byte[]> compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings) Compile the given sources and returns the generated byte codes. Additional compiler settings can be provided using JavaCompilerSettings- Parameters:
classNameSourceMap-classLoader-compilerSettings-- Returns:
-
compileNoLoad
public static Map<String,byte[]> compileNoLoad(Map<String, String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings, JavaConfiguration.CompilerType compilerType) Compile the given sources and returns the generated byte codes. Additional compiler settings can be provided using JavaCompilerSettings- Parameters:
classNameSourceMap-classLoader-compilerSettings-- Returns:
-