|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.util.classhierarchy.ClassHierarchyHelper
public class ClassHierarchyHelper
Helper class for dealing with inheritance hierarchies of given types which allows to selectively retrieve elements from such hierarchies, e.g. all super-classes, all implemented interfaces etc.
| Constructor Summary | |
|---|---|
ClassHierarchyHelper()
|
|
| Method Summary | ||
|---|---|---|
static List<Method> |
getAllMethods(Class<?> clazz)
Get a list of all methods wich the given class declares, implements, overrides or inherits. |
|
static
|
getDirectlyImplementedInterfaces(Class<T> clazz)
Gets all interfaces (and recursively their super-interfaces) which the given class directly implements. |
|
static
|
getHierarchy(Class<T> clazz,
Filter... filters)
Gets the elements of the hierarchy of the given class which match the given filters. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassHierarchyHelper()
| Method Detail |
|---|
public static <T> List<Class<? super T>> getHierarchy(Class<T> clazz,
Filter... filters)
clazz - the class for which to retrieve the hierarchyfilters - filters applying for the search
public static <T> Set<Class<? super T>> getDirectlyImplementedInterfaces(Class<T> clazz)
clazz - the class for which to retrieve the implemented interfaces
public static List<Method> getAllMethods(Class<?> clazz)
clazz - the class for which to retrieve the methods
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||