Package org.kie.memorycompiler
Class KieMemoryCompiler
- java.lang.Object
-
- org.kie.memorycompiler.KieMemoryCompiler
-
public class KieMemoryCompiler extends java.lang.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 java.util.Map<java.lang.String,java.lang.Class<?>>compile(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader)Compile the given sources without adding compiled classes to the givenClassLoaderclassNameSourceMap' key must be the FQDN of the class to compilestatic java.util.Map<java.lang.String,java.lang.Class<?>>compile(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.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 java.util.Map<java.lang.String,byte[]>compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader)Compile the given sources and returns the generated byte codesstatic java.util.Map<java.lang.String,byte[]>compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader, JavaCompilerSettings compilerSettings)Compile the given sources and returns the generated byte codes.static java.util.Map<java.lang.String,byte[]>compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader, JavaCompilerSettings compilerSettings, JavaConfiguration.CompilerType compilerType)Compile the given sources and returns the generated byte codes.static java.util.Map<java.lang.String,byte[]>compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader, JavaConfiguration.CompilerType compilerType)Compile the given sources and returns the generated byte codes
-
-
-
Method Detail
-
compile
public static java.util.Map<java.lang.String,java.lang.Class<?>> compile(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.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 java.util.Map<java.lang.String,java.lang.Class<?>> compile(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.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 java.util.Map<java.lang.String,byte[]> compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader)Compile the given sources and returns the generated byte codes- Parameters:
classNameSourceMap-classLoader-- Returns:
-
compileNoLoad
public static java.util.Map<java.lang.String,byte[]> compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.ClassLoader classLoader, JavaConfiguration.CompilerType compilerType)Compile the given sources and returns the generated byte codes- Parameters:
classNameSourceMap-classLoader-- Returns:
-
compileNoLoad
public static java.util.Map<java.lang.String,byte[]> compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.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 java.util.Map<java.lang.String,byte[]> compileNoLoad(java.util.Map<java.lang.String,java.lang.String> classNameSourceMap, java.lang.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:
-
-