public class ReflectionUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ReflectionUtils.ReflectionException |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.reflect.Field> |
getAllFields(java.lang.Class<?> type) |
static java.lang.Object |
invokeMethod(java.lang.reflect.Method method,
java.lang.Object target,
java.lang.Object... parameter) |
static org.reflections.Reflections |
obtainReflectionToolkit() |
static java.lang.reflect.Field |
retrieveField(java.lang.Class<?> target,
java.lang.String name) |
static java.lang.reflect.Method |
retrieveMethod(java.lang.Class<?> target,
java.lang.String name,
java.lang.Class<?>... parameter) |
static java.lang.reflect.Field |
searchForField(java.lang.Class<?> type,
java.lang.String name) |
public static org.reflections.Reflections obtainReflectionToolkit()
public static java.lang.Object invokeMethod(java.lang.reflect.Method method,
java.lang.Object target,
java.lang.Object... parameter)
public static java.lang.reflect.Method retrieveMethod(java.lang.Class<?> target,
java.lang.String name,
java.lang.Class<?>... parameter)
public static java.lang.reflect.Field retrieveField(java.lang.Class<?> target,
java.lang.String name)
public static java.lang.reflect.Field searchForField(java.lang.Class<?> type,
java.lang.String name)
public static java.util.List<java.lang.reflect.Field> getAllFields(java.lang.Class<?> type)