public class ClassUtils extends Object
| Constructor and Description |
|---|
ClassUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
forceInvoke(Method m,
Object[] args) |
static Object |
forceInvoke(Object o,
Method m,
Object[] args) |
static List<Method> |
getAllNonOverriddenMethods(Class<?> clazz)
Returns all non-overridden methods for the given class.
|
static List<Method> |
getAllNonOverriddenMethods(Class<?> clazz,
String name) |
static Integer[] |
getDistance(Class<?>[] a,
Class<?>[] b) |
static Integer |
getDistance(Class<?> given,
Class<?> there)
Returns the minimum distance of two classes in an inheritance hierarchy
Null if there is no distance
|
static Integer[] |
getDistance(Class<?> ra,
Class<?> rb,
Class<?>[] a,
Class<?>[] b)
Including return types
|
static Integer |
getRelation(Integer[] a,
Integer[] b) |
static Class<?>[] |
getTypeSignature(Object[] args) |
static List<Class<?>> |
getTypeSignatureList(Object[] args) |
public static Integer getDistance(Class<?> given, Class<?> there)
public static Integer[] getDistance(Class<?> ra, Class<?> rb, Class<?>[] a, Class<?>[] b)
ra - rb - a - b - public static Integer getRelation(Integer[] a, Integer[] b)
a - b - public static List<Method> getAllNonOverriddenMethods(Class<?> clazz)
clazz - Copyright © 2013. All Rights Reserved.