Package org.kie.memorycompiler
Class KieMemoryCompiler
- java.lang.Object
-
- org.kie.memorycompiler.KieMemoryCompiler
-
public class KieMemoryCompiler extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKieMemoryCompiler.MemoryCompilerClassLoader
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 compilestatic 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.static Map<String,byte[]>compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader)Compile the given sources and returns the generated byte codesstatic Map<String,byte[]>compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaCompilerSettings compilerSettings)Compile the given sources and returns the generated byte codes.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.static Map<String,byte[]>compileNoLoad(Map<String,String> classNameSourceMap, ClassLoader classLoader, JavaConfiguration.CompilerType compilerType)Compile the given sources and returns the generated byte codes
-
-
-
Method Detail
-
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:
-
-