public abstract class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Field |
findField(Class<?> clazz,
String name) |
static Field |
findField(Class<?> clazz,
String name,
Class<?> type) |
static Method |
findMethod(Class<?> targetClass,
String name,
Class<?>... paramTypes) |
static <T> T |
getField(Field field,
Object target) |
static <T> T |
invoke(Method method,
Object target,
Object... args) |
static void |
makeAccessible(AccessibleObject accessible) |
static void |
setField(Field field,
Object target,
Object value) |
public static void makeAccessible(AccessibleObject accessible)
public static Method findMethod(Class<?> targetClass, String name, Class<?>... paramTypes)