public class CodegenCompilerJanino extends Object implements CodegenCompiler
Janino cannot do shortcut-evaluation in the form of "a ? b : c". This results in "operand stack underflow".
Janino cannot handle compilation error "result = method()" with method returning void. This results in "operand stack underflow".
Constructor and Description |
---|
CodegenCompilerJanino(boolean logging,
boolean includeDebugSymbols) |
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
compileClass(String code,
String fullyQualifiedClassName,
ClassLoader classLoader,
Supplier<String> debugInformation) |
public CodegenCompilerJanino(boolean logging, boolean includeDebugSymbols)
public <T> Class<T> compileClass(String code, String fullyQualifiedClassName, ClassLoader classLoader, Supplier<String> debugInformation) throws CodegenCompilerException
compileClass
in interface CodegenCompiler
CodegenCompilerException