Package org.aspectj.apache.bcel
Klasse Repository
java.lang.Object
org.aspectj.apache.bcel.Repository
The repository maintains informations about class interdependencies, e.g., whether a class is a sub-class of another. Delegates
actual class loading to SyntheticRepository with current class path by default.
- Version:
- $Id: Repository.java,v 1.6 2009/09/09 22:18:20 aclement Exp $
- Autor:
- M. Dahm
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic JavaClass
Add clazz to repository if there isn't an equally named class already in there.static void
Clear the repository.static Repository
static boolean
implementationOf
(String clazz, String inter) static boolean
implementationOf
(JavaClass clazz, JavaClass inter) static boolean
instanceOf
(String clazz, String super_class) static boolean
instanceOf
(JavaClass clazz, JavaClass super_class) Equivalent to runtime "instanceof" operator.static JavaClass
lookupClass
(String class_name) Lookup class somewhere found on your CLASSPATH, or whereever the repository instance looks for it.static ClassPath.ClassFile
lookupClassFile
(String class_name) static void
removeClass
(String clazz) Remove class with given (fully qualified) name from repository.static void
setRepository
(Repository rep) Set repository instance to be used for class loading
-
Konstruktordetails
-
Repository
public Repository()
-
-
Methodendetails
-
getRepository
- Gibt zurück:
- currently used repository instance
-
setRepository
Set repository instance to be used for class loading -
lookupClass
Lookup class somewhere found on your CLASSPATH, or whereever the repository instance looks for it.- Gibt zurück:
- class object for given fully qualified class name, or null if the class could not be found or parsed correctly
-
lookupClassFile
- Gibt zurück:
- class file object for given Java class.
-
clearCache
public static void clearCache()Clear the repository. -
addClass
Add clazz to repository if there isn't an equally named class already in there.- Gibt zurück:
- old entry in repository
-
removeClass
Remove class with given (fully qualified) name from repository. -
instanceOf
Equivalent to runtime "instanceof" operator.- Gibt zurück:
- true, if clazz is an instance of super_class
-
instanceOf
- Gibt zurück:
- true, if clazz is an instance of super_class
-
implementationOf
- Gibt zurück:
- true, if clazz is an implementation of interface inter
-
implementationOf
- Gibt zurück:
- true, if clazz is an implementation of interface inter
-