public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
collectInterfaces(Class from,
Set<Class> accumulator) |
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 Set<Class> |
getSuperclasses(Class from) |
public static List<Method> getMethods(IPredicate<Method> condition, Class<?> target)
public static Method getOverridingMethod(Method overridingMethod, Class subclass)
overridingMethod - subclass - Copyright © 2013. All Rights Reserved.