org.eigenbase.javac
Class JaninoCompiler.AccountingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.codehaus.janino.JavaSourceClassLoader
          extended by org.eigenbase.javac.JaninoCompiler.AccountingClassLoader
Enclosing class:
JaninoCompiler

private static class JaninoCompiler.AccountingClassLoader
extends JavaSourceClassLoader

Refinement of JavaSourceClassLoader which keeps track of the total bytecode length of the classes it has compiled.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.janino.JavaSourceClassLoader
JavaSourceClassLoader.ProtectionDomainFactory
 
Field Summary
private  int nBytes
           
 
Constructor Summary
JaninoCompiler.AccountingClassLoader(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String optionalCharacterEncoding, EnumeratorSet debuggingInformation)
           
 
Method Summary
protected  Map generateBytecodes(String name)
           
(package private)  int getTotalByteCodeSize()
           
 
Methods inherited from class org.codehaus.janino.JavaSourceClassLoader
defineBytecode, defineBytecodes, findClass, main, setCompileErrorHandler, setProtectionDomainFactory, setWarningHandler
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nBytes

private int nBytes
Constructor Detail

JaninoCompiler.AccountingClassLoader

public JaninoCompiler.AccountingClassLoader(ClassLoader parentClassLoader,
                                            ResourceFinder sourceFinder,
                                            String optionalCharacterEncoding,
                                            EnumeratorSet debuggingInformation)
Method Detail

getTotalByteCodeSize

int getTotalByteCodeSize()

generateBytecodes

protected Map generateBytecodes(String name)
                         throws ClassNotFoundException
Overrides:
generateBytecodes in class JavaSourceClassLoader
Throws:
ClassNotFoundException