Package org.identityconnectors.common
Class ReflectionUtil
java.lang.Object
org.identityconnectors.common.ReflectionUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsInterface
(Class<?> target, Class<?> clazz) Determine if the target class implements the provided interface.getAllInterfaces
(Class<?> target) Builds aSet
of interfaces from the target class.getInterfaces
(Class<?> target, Class<T> type) Get all interfaces the extends the type provided.static String
getMethodName
(int depth) Determine the method name for the calling class.static String
getPackage
(Class<?> clazz) Returns the package the class is associated with.static boolean
overridesEqualsAndHashcode
(Class<?> clazz) Returns true if the given class overrides equals and hashCode.
-
Field Details
-
METHOD_UNKNOWN
- See Also:
-
-
Method Details
-
getAllInterfaces
Builds aSet
of interfaces from the target class. -
containsInterface
Determine if the target class implements the provided interface.- Parameters:
target
- class to look through for a matching interface.clazz
- interface class to look for.- Returns:
- true if a matching interface is found otherwise false.
-
getInterfaces
Get all interfaces the extends the type provided. -
overridesEqualsAndHashcode
Returns true if the given class overrides equals and hashCode.- Parameters:
clazz
- The class to check.- Returns:
- True if the given class overrides equals and hashCode
-
getPackage
Returns the package the class is associated with.- Parameters:
clazz
- class to inspect for the package.- Returns:
- package for the class provided.
- Throws:
NullPointerException
- if clazz isnull
.
-
getMethodName
Determine the method name for the calling class.
-