org.apache.bcel.util.Repository , SyntheticRepository
| Modifier and Type | Field and Description |
|---|---|
| private static Repository |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static JavaClass | |
| public static void | |
| public static JavaClass[] | Returns: all interfaces implemented by class and its super classes and the interfaces that those interfaces extend, and so on. (Some people call this a transitive hull).
|
| public static JavaClass[] | Returns: all interfaces implemented by class and its super classes and the interfaces that extend those interfaces, and so on
|
| public static Repository | |
| public static JavaClass[] | Returns: list of super classes of clazz in ascending order, i.e., Object is always the last element
|
| public static JavaClass[] | Returns: list of super classes of clazz in ascending order, i.e., Object is always the last element.
|
| public static boolean | Returns: true, if clazz is an implementation of interface inter
|
| public static boolean | Returns: true, if clazz is an implementation of interface inter
|
| public static boolean | Returns: true, if clazz is an implementation of interface inter
|
| public static boolean | Returns: true, if clazz is an implementation of interface inter
|
| public static boolean | Returns: true, if clazz is an instance of superclassEquivalent to runtime "instanceof" operator. |
| public static boolean | Returns: true, if clazz is an instance of superclass
|
| public static boolean | Returns: true, if clazz is an instance of superclass
|
| public static boolean | Returns: true, if clazz is an instance of superclass
|
| public static JavaClass | Returns: JavaClass object for given runtime classTries to find class source using the internal repository instance. |
| public static JavaClass | Returns: class object for given fully qualified class nameLookups class somewhere found on your CLASSPATH, or whereever the repository instance looks for it. |
| public static ClassPath. | Returns: class file object for given Java class by looking on the system class path; returns null if the class file can't be found
|
| public static void | |
| public static void | |
| public static void |
| repository | back to summary |
|---|---|
| private static Repository repository | |
| Repository | back to summary |
|---|---|
| public Repository() | |
| addClass | back to summary |
|---|---|
| public static JavaClass addClass(final JavaClass clazz) Adds clazz to repository if there isn't an equally named class already in there.
| |
| clearCache | back to summary |
|---|---|
| public static void clearCache() Clears the repository. | |
| getInterfaces | back to summary |
|---|---|
public static JavaClass[] getInterfaces(final JavaClass clazz) throws ClassNotFoundException
| |
| getInterfaces | back to summary |
|---|---|
public static JavaClass[] getInterfaces(final String className) throws ClassNotFoundException
| |
| getRepository | back to summary |
|---|---|
public static Repository getRepository()
| |
| getSuperClasses | back to summary |
|---|---|
public static JavaClass[] getSuperClasses(final JavaClass clazz) throws ClassNotFoundException
| |
| getSuperClasses | back to summary |
|---|---|
public static JavaClass[] getSuperClasses(final String className) throws ClassNotFoundException
| |
| implementationOf | back to summary |
|---|---|
public static boolean implementationOf(final JavaClass clazz, final JavaClass inter) throws ClassNotFoundException
| |
| implementationOf | back to summary |
|---|---|
public static boolean implementationOf(final JavaClass clazz, final String inter) throws ClassNotFoundException
| |
| implementationOf | back to summary |
|---|---|
public static boolean implementationOf(final String clazz, final JavaClass inter) throws ClassNotFoundException
| |
| implementationOf | back to summary |
|---|---|
public static boolean implementationOf(final String clazz, final String inter) throws ClassNotFoundException
| |
| instanceOf | back to summary |
|---|---|
| public static boolean instanceOf(final JavaClass clazz, final JavaClass superclass) throws ClassNotFoundException Equivalent to runtime "instanceof" operator.
| |
| instanceOf | back to summary |
|---|---|
public static boolean instanceOf(final JavaClass clazz, final String superclass) throws ClassNotFoundException
| |
| instanceOf | back to summary |
|---|---|
public static boolean instanceOf(final String clazz, final JavaClass superclass) throws ClassNotFoundException
| |
| instanceOf | back to summary |
|---|---|
public static boolean instanceOf(final String clazz, final String superclass) throws ClassNotFoundException
| |
| lookupClass | back to summary |
|---|---|
| public static JavaClass lookupClass(final Class<?> clazz) throws ClassNotFoundException Tries to find class source using the internal repository instance.
| |
| lookupClass | back to summary |
|---|---|
| public static JavaClass lookupClass(final String className) throws ClassNotFoundException Lookups class somewhere found on your CLASSPATH, or whereever the repository instance looks for it.
| |
| lookupClassFile | back to summary |
|---|---|
| public static ClassPath. | |
| removeClass | back to summary |
|---|---|
| public static void removeClass(final JavaClass clazz) Removes given class from repository. | |
| removeClass | back to summary |
|---|---|
| public static void removeClass(final String clazz) Removes class with given (fully qualified) name from repository. | |
| setRepository | back to summary |
|---|---|
| public static void setRepository(final Repository rep) Sets repository instance to be used for class loading | |