public class ReflectionUtils
extends org.springframework.util.ReflectionUtils
Modifier and Type | Class and Description |
---|---|
static class |
ReflectionUtils.Parameter |
org.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 List<ReflectionUtils.Parameter> |
getParameters(Method m)
Returns an object-oriented view of parameters of each type.
|
static Method |
getPublicMethodNamed(Class c,
String methodName)
Finds a public method of the given name, regardless of its parameter definitions,
|
static Object |
getPublicProperty(Object o,
String p) |
static Object |
getVmDefaultValueForPrimitiveType(Class<?> type)
Given the primitive type, returns the VM default value for that type in a boxed form.
|
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, shallowCopyFieldState
public static Method getPublicMethodNamed(Class c, String methodName)
public static List<ReflectionUtils.Parameter> getParameters(Method m)
public static Object getPublicProperty(Object o, String p) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException
@CheckForNull public static Object getVmDefaultValueForPrimitiveType(Class<?> type)
Class.isPrimitive()
Copyright © 2004–2022. All rights reserved.