|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.identityconnectors.common.ReflectionUtil
public class ReflectionUtil
Method Summary | ||
---|---|---|
static boolean |
containsInterface(java.lang.Class<?> target, java.lang.Class<?> clazz) Determine if the target class implements the provided interface. |
|
static java.util.Set<java.lang.Class<?>> |
getAllInterfaces(java.lang.Class<?> target) Builds a Set of interfaces from the target class. |
|
static
|
getInterfaces(java.lang.Class<?> target, java.lang.Class<T> type) Get all interfaces the extends the type provided. |
|
static java.lang.String |
getMethodName(int depth) Determine the method name for the calling class. |
|
static java.lang.String |
getPackage(java.lang.Class<?> clazz) Returns the package the class is associated with. |
|
static boolean |
overridesEqualsAndHashcode(java.lang.Class<?> clazz) Returns true iff the given class overrides equals and hashCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Set<java.lang.Class<?>> getAllInterfaces(java.lang.Class<?> target)
Set
of interfaces from the target class.public static boolean containsInterface(java.lang.Class<?> target, java.lang.Class<?> clazz)
target
- class to look through for a matching interface.clazz
- interface class to look for.public static <T> java.util.List<java.lang.Class<? extends T>> getInterfaces(java.lang.Class<?> target, java.lang.Class<T> type)
public static boolean overridesEqualsAndHashcode(java.lang.Class<?> clazz)
clazz
- The class to check.public static java.lang.String getPackage(java.lang.Class<?> clazz)
clazz
- class to inspect for the package.java.lang.NullPointerException
- iff clazz is null
.public static java.lang.String getMethodName(int depth)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |