org.eigenbase.javac
Class JaninoCompiler.AccountingClassLoader
java.lang.Object
java.lang.ClassLoader
org.codehaus.janino.JavaSourceClassLoader
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.
Field Summary |
private int |
nBytes
|
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 |
nBytes
private int nBytes
JaninoCompiler.AccountingClassLoader
public JaninoCompiler.AccountingClassLoader(ClassLoader parentClassLoader,
ResourceFinder sourceFinder,
String optionalCharacterEncoding,
EnumeratorSet debuggingInformation)
getTotalByteCodeSize
int getTotalByteCodeSize()
generateBytecodes
protected Map generateBytecodes(String name)
throws ClassNotFoundException
- Overrides:
generateBytecodes
in class JavaSourceClassLoader
- Throws:
ClassNotFoundException