|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.util.ReflectionUtils
hudson.util.ReflectionUtils
public class ReflectionUtils
Utility code for reflection.
Nested Class Summary | |
---|---|
static class |
ReflectionUtils.Parameter
|
Nested classes/interfaces inherited from class org.springframework.util.ReflectionUtils |
---|
org.springframework.util.ReflectionUtils.FieldCallback, org.springframework.util.ReflectionUtils.FieldFilter, org.springframework.util.ReflectionUtils.MethodCallback, org.springframework.util.ReflectionUtils.MethodFilter |
Field Summary |
---|
Fields inherited from class org.springframework.util.ReflectionUtils |
---|
COPYABLE_FIELDS |
Constructor Summary | |
---|---|
ReflectionUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.util.ReflectionUtils |
---|
declaresException, doWithFields, doWithFields, doWithMethods, doWithMethods, findField, findField, findMethod, findMethod, getAllDeclaredMethods, getField, handleInvocationTargetException, handleReflectionException, invokeJdbcMethod, invokeJdbcMethod, invokeMethod, invokeMethod, isEqualsMethod, isHashCodeMethod, isPublicStaticFinal, isToStringMethod, makeAccessible, makeAccessible, makeAccessible, rethrowException, rethrowRuntimeException, setField, shallowCopyFieldState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionUtils()
Method Detail |
---|
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
InvocationTargetException
NoSuchMethodException
IllegalAccessException
public static Object getVmDefaultValueForPrimitiveType(Class<?> type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |