junit.quilt.cover.generic
Class QuiltClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--junit.quilt.cover.generic.QuiltClassLoader
Direct Known Subclasses:
MethInstClassLoader

public class QuiltClassLoader
extends java.net.URLClassLoader


Constructor Summary
QuiltClassLoader(java.lang.String[] packages, java.net.URL[] path)
           
QuiltClassLoader(java.lang.String[] packages, java.net.URL[] path, java.lang.ClassLoader parent)
           
 
Method Summary
protected  int addStaticField(InstContext context, org.apache.bcel.generic.Type type, java.lang.Object initData)
          addStaticField This creates a unique static field on the class, and returns a field reference which is valid in the current ConstantPool.
 java.lang.Class findClass(java.lang.String className)
           
protected  org.apache.bcel.classfile.JavaClass modifyClass(org.apache.bcel.classfile.JavaClass clazz)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuiltClassLoader

public QuiltClassLoader(java.lang.String[] packages,
                        java.net.URL[] path)

QuiltClassLoader

public QuiltClassLoader(java.lang.String[] packages,
                        java.net.URL[] path,
                        java.lang.ClassLoader parent)
Method Detail

addStaticField

protected int addStaticField(InstContext context,
                             org.apache.bcel.generic.Type type,
                             java.lang.Object initData)
addStaticField This creates a unique static field on the class, and returns a field reference which is valid in the current ConstantPool. The name is autogenerated.

modifyClass

protected org.apache.bcel.classfile.JavaClass modifyClass(org.apache.bcel.classfile.JavaClass clazz)

findClass

public java.lang.Class findClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.net.URLClassLoader


Copyright © 2001-2002 David Dixon-Peugh. All Rights Reserved.