public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsOverridingMethod(List<Method> allMethods,
Method methodToCheck) |
static List<Method> |
getMethods(IPredicate<Method> condition,
Class<?> target) |
static Method |
getOverridingMethod(Method overridingMethod,
Class subclass)
Traverses the class hierarchy upwards, starting at the given subclass, looking
for an override of the given methods -> finds the bottom most override of the given
method if any exists
|
static Collection<Class> |
getSuperclasses(Class from) |
static List<Method> |
withoutOverridenSuperclassMethods(List<Method> allMethods) |
public static List<Method> getMethods(IPredicate<Method> condition, Class<?> target)
public static Method getOverridingMethod(Method overridingMethod, Class subclass)
overridingMethod - subclass - public static List<Method> withoutOverridenSuperclassMethods(List<Method> allMethods)
public static Collection<Class> getSuperclasses(Class from)
Copyright © 2013. All Rights Reserved.