org.eigenbase.javac
Class JaninoCompiler

java.lang.Object
  extended by org.eigenbase.javac.JaninoCompiler
All Implemented Interfaces:
JavaCompiler

public class JaninoCompiler
extends Object
implements JavaCompiler

JaninoCompiler implements the JavaCompiler interface by calling Janino.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/javac/JaninoCompiler.java#17 $
Author:
John V. Sichi

Nested Class Summary
private static class JaninoCompiler.AccountingClassLoader
          Refinement of JavaSourceClassLoader which keeps track of the total bytecode length of the classes it has compiled.
private static class JaninoCompiler.JaninoCompilerArgs
           
 
Field Summary
private  JaninoCompiler.JaninoCompilerArgs args
           
private  JaninoCompiler.AccountingClassLoader classLoader
           
 
Constructor Summary
JaninoCompiler()
           
 
Method Summary
 void compile()
           
private  void compileImpl()
           
 JavaCompilerArgs getArgs()
           
 ClassLoader getClassLoader()
           
 int getTotalByteCodeSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

private JaninoCompiler.JaninoCompilerArgs args

classLoader

private JaninoCompiler.AccountingClassLoader classLoader
Constructor Detail

JaninoCompiler

public JaninoCompiler()
Method Detail

compile

public void compile()
Specified by:
compile in interface JavaCompiler

compileImpl

private void compileImpl()

getArgs

public JavaCompilerArgs getArgs()
Specified by:
getArgs in interface JavaCompiler

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface JavaCompiler

getTotalByteCodeSize

public int getTotalByteCodeSize()
Specified by:
getTotalByteCodeSize in interface JavaCompiler