org.apache.bcel.util
public class SyntheticRepository extends Object implements Repository
Version: $Id: SyntheticRepository.java 386056 2006-03-15 11:31:56Z tcurdt $
| Field Summary | |
|---|---|
| static String | DEFAULT_PATH |
| static Map | _instances |
| Map | _loadedClasses |
| ClassPath | _path |
| Constructor Summary | |
|---|---|
| SyntheticRepository(ClassPath path) | |
| 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.
|
| JavaClass | loadClass(InputStream is, String className) |
| 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