public class ClassHierarchyHelper extends Object
| Constructor and Description |
|---|
ClassHierarchyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<Method> |
getAllMethods(Class<?> clazz)
Get a list of all methods wich the given class declares, implements,
overrides or inherits.
|
static <T> Set<Class<? super T>> |
getDirectlyImplementedInterfaces(Class<T> clazz)
Gets all interfaces (and recursively their super-interfaces) which the
given class directly implements.
|
static <T> List<Class<? super T>> |
getHierarchy(Class<T> clazz,
Filter... filters)
Gets the elements of the hierarchy of the given class which match the
given filters.
|
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 searchpublic static <T> Set<Class<? super T>> getDirectlyImplementedInterfaces(Class<T> clazz)
clazz - the class for which to retrieve the implemented interfacespublic static List<Method> getAllMethods(Class<?> clazz)
clazz - the class for which to retrieve the methodsCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved