Package org.apache.calcite.util.javac
Class JaninoCompiler
- java.lang.Object
-
- org.apache.calcite.util.javac.JaninoCompiler
-
- All Implemented Interfaces:
JavaCompiler
public class JaninoCompiler extends java.lang.Object implements JavaCompiler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JaninoCompiler.AccountingClassLoader
Refinement of JavaSourceClassLoader which keeps track of the total bytecode length of the classes it has compiled.static class
JaninoCompiler.JaninoCompilerArgs
Arguments to an invocation of the Janino compiler.
-
Field Summary
Fields Modifier and Type Field Description JaninoCompiler.JaninoCompilerArgs
args
private JaninoCompiler.AccountingClassLoader
classLoader
-
Constructor Summary
Constructors Constructor Description JaninoCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compile()
JavaCompilerArgs
getArgs()
java.lang.ClassLoader
getClassLoader()
int
getTotalByteCodeSize()
-
-
-
Field Detail
-
args
public JaninoCompiler.JaninoCompilerArgs args
-
classLoader
private JaninoCompiler.AccountingClassLoader classLoader
-
-
Method Detail
-
compile
public void compile()
- Specified by:
compile
in interfaceJavaCompiler
-
getArgs
public JavaCompilerArgs getArgs()
- Specified by:
getArgs
in interfaceJavaCompiler
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceJavaCompiler
-
getTotalByteCodeSize
public int getTotalByteCodeSize()
- Specified by:
getTotalByteCodeSize
in interfaceJavaCompiler
-
-