public abstract class ReflectionUtils
extends org.springframework.util.ReflectionUtils
Class for performing reflective and introspective Java Object operations.Class,
Object,
Constructor,
Field,
Method,
ReflectionUtilsorg.springframework.util.ReflectionUtils.FieldCallback, org.springframework.util.ReflectionUtils.FieldFilter, org.springframework.util.ReflectionUtils.MethodCallback, org.springframework.util.ReflectionUtils.MethodFilter| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getFieldValue(java.lang.Object target,
java.lang.String fieldName) |
static java.lang.reflect.Constructor |
makeAccessibleReturnConstructor(java.lang.reflect.Constructor constructor) |
static java.lang.reflect.Field |
makeAccessibleReturnField(java.lang.reflect.Field field) |
static java.lang.reflect.Method |
makeAccessibleReturnMethod(java.lang.reflect.Method method) |
static <T> java.lang.Object |
setField(T target,
java.lang.String fieldName,
java.lang.Object value) |
accessibleConstructor, clearCache, declaresException, doWithFields, doWithFields, doWithLocalFields, doWithLocalMethods, doWithMethods, doWithMethods, findField, findField, findMethod, findMethod, getAllDeclaredMethods, getDeclaredMethods, getField, getUniqueDeclaredMethods, getUniqueDeclaredMethods, handleInvocationTargetException, handleReflectionException, invokeMethod, invokeMethod, isCglibRenamedMethod, isEqualsMethod, isHashCodeMethod, isObjectMethod, isPublicStaticFinal, isToStringMethod, makeAccessible, makeAccessible, makeAccessible, rethrowException, rethrowRuntimeException, setField, shallowCopyFieldStatepublic static <T> T getFieldValue(java.lang.Object target,
java.lang.String fieldName)
throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldExceptionpublic static java.lang.reflect.Constructor makeAccessibleReturnConstructor(java.lang.reflect.Constructor constructor)
public static java.lang.reflect.Field makeAccessibleReturnField(java.lang.reflect.Field field)
public static java.lang.reflect.Method makeAccessibleReturnMethod(java.lang.reflect.Method method)
public static <T> java.lang.Object setField(T target,
java.lang.String fieldName,
java.lang.Object value)
throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException