public class ClassDependencyHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
getAllInterfaces(java.util.ArrayList<java.lang.Class> list,
java.lang.Class clazz)
Return all the interfaces implemented by a Class, at any level of the inheritance hierarchy.
|
static ClassDependencyHelper |
getInstance()
Return the unique instance.
|
static ClassDependencyHelper |
getInstance(java.lang.ClassLoader loader)
Return the unique instance of this helper, with a selected ClassLoader.
|
boolean |
isSuperClass(java.lang.Class clazz,
java.lang.Class supClazz)
Return true if a Class is a superclass of another Class.
|
boolean |
isSuperClass(java.lang.Class clazz,
java.lang.String supClazzName)
Return true if supClazzName is a superclass of clazz, or is equal to clazz.
|
public static ClassDependencyHelper getInstance()
public static ClassDependencyHelper getInstance(java.lang.ClassLoader loader)
loader - the ClassLoaderpublic void getAllInterfaces(java.util.ArrayList<java.lang.Class> list,
java.lang.Class clazz)
list - the list which will need to contain the interfaces implemented by the Classclazz - the Classpublic boolean isSuperClass(java.lang.Class clazz,
java.lang.Class supClazz)
supClazz is a superclass of clazz if one of these conditions is true :
clazz - the ClasssupClazz - the Class on interface that we will checkpublic boolean isSuperClass(java.lang.Class clazz,
java.lang.String supClazzName)
clazz - the ClasssupClazzName - the name of the Class for which we want to check if it is a superclass of clazzisSuperClass(Class, Class)