Class ClassReflectionUtil
java.lang.Object
org.zeroturnaround.javarebel.integration.util.ClassReflectionUtil
Class reflection helper methods.
- Author:
- Rein Raudjärv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassHierarchies(Class<?>... classes) getClassHierarchies(Collection<? extends Class<?>> classes) getClassHierarchy(Class<?> klass) getInterfaces(Collection<Class<?>> classes)
-
Constructor Details
-
ClassReflectionUtil
public ClassReflectionUtil()
-
-
Method Details
-
getClassHierarchy
- Parameters:
klass- a root class.- Returns:
- a set containing the given class, the super classes, the interfaces and all the parent interfaces.
-
getClassHierarchies
- Parameters:
classes- root classes.- Returns:
- a set containing the given classes, the super classes, the interfaces and all the parent interfaces.
-
getClassHierarchies
- Parameters:
classes- root classes.- Returns:
- a set containing the given classes, the super classes, the interfaces and all the parent interfaces.
-
getInterfaces
- Parameters:
classes- a set of classes.- Returns:
- a set containing interfaces of each class.
-