public class ClassHierarchyHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Set<java.lang.Class<? super T>> |
getDirectlyImplementedInterfaces(java.lang.Class<T> clazz)
Gets all interfaces (and recursively their super-interfaces) which the
given class directly implements.
|
static <T> java.util.List<java.lang.Class<? super T>> |
getHierarchy(java.lang.Class<T> clazz,
Filter... filters)
Gets the elements of the hierarchy of the given class which match the
given filters.
|
public static <T> java.util.List<java.lang.Class<? super T>> getHierarchy(java.lang.Class<T> clazz, Filter... filters)
T
- the type of the classclazz
- the class for which to retrieve the hierarchyfilters
- filters applying for the searchpublic static <T> java.util.Set<java.lang.Class<? super T>> getDirectlyImplementedInterfaces(java.lang.Class<T> clazz)
T
- the type of the classclazz
- the class for which to retrieve the implemented interfacesCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved