org.apache.bcel.util
public class SyntheticRepository extends Object implements Repository
Method Summary | |
---|---|
void | clear() Clear all entries from cache. |
JavaClass | findClass(String className)
Find an already defined (cached) JavaClass object by name. |
ClassPath | getClassPath() ClassPath associated with the Repository. |
static SyntheticRepository | getInstance() |
static SyntheticRepository | getInstance(ClassPath classPath) |
JavaClass | loadClass(String className)
Find a JavaClass object by name.
|
JavaClass | loadClass(Class clazz)
Find the JavaClass object for a runtime Class object.
|
void | removeClass(JavaClass clazz)
Remove class from repository |
void | storeClass(JavaClass clazz)
Store a new JavaClass instance into this Repository. |
Parameters: className the name of the class
Returns: the JavaClass object
Throws: ClassNotFoundException if the class is not in the Repository, and could not be found on the classpath
Parameters: clazz the runtime Class object
Returns: JavaClass object for given runtime class
Throws: ClassNotFoundException if the class is not in the Repository, and its representation could not be found
See Also: Class