|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.bcel.util.ClassLoaderRepository
public class ClassLoaderRepository
The repository maintains information about which classes have been loaded. It loads its data from the ClassLoader implementation passed into its constructor.
Repository
,
Serialized FormConstructor Summary | |
---|---|
ClassLoaderRepository(ClassLoader loader)
|
Method Summary | |
---|---|
void |
clear()
Clear all entries from cache. |
JavaClass |
findClass(String className)
Find an already defined JavaClass. |
ClassPath |
getClassPath()
Get the ClassPath associated with this Repository |
JavaClass |
loadClass(Class clazz)
Find the JavaClass instance for the given run-time class object |
JavaClass |
loadClass(String className)
Lookup a JavaClass object from the Class Name provided. |
void |
removeClass(JavaClass clazz)
Remove class from repository |
void |
storeClass(JavaClass clazz)
Store a new JavaClass into this Repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassLoaderRepository(ClassLoader loader)
Method Detail |
---|
public void storeClass(JavaClass clazz)
storeClass
in interface Repository
public void removeClass(JavaClass clazz)
removeClass
in interface Repository
public JavaClass findClass(String className)
findClass
in interface Repository
public JavaClass loadClass(String className) throws ClassNotFoundException
loadClass
in interface Repository
ClassNotFoundException
public JavaClass loadClass(Class clazz) throws ClassNotFoundException
Repository
loadClass
in interface Repository
ClassNotFoundException
public void clear()
clear
in interface Repository
public ClassPath getClassPath()
Repository
getClassPath
in interface Repository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |