Package hudson.util
Class ReflectionUtils
java.lang.Object
org.springframework.util.ReflectionUtils
hudson.util.ReflectionUtils
public class ReflectionUtils
extends org.springframework.util.ReflectionUtils
Utility code for reflection.
- Since:
- 1.351
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
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, USER_DECLARED_METHODS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ReflectionUtils.Parameter>
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
accessibleConstructor, clearCache, declaresException, doWithFields, doWithFields, doWithLocalFields, doWithLocalMethods, doWithMethods, doWithMethods, findField, findField, findFieldIgnoreCase, findMethod, findMethod, getAllDeclaredMethods, getDeclaredMethods, getField, getUniqueDeclaredMethods, getUniqueDeclaredMethods, handleInvocationTargetException, handleReflectionException, invokeMethod, invokeMethod, isCglibRenamedMethod, isEqualsMethod, isHashCodeMethod, isObjectMethod, isPublicStaticFinal, isToStringMethod, makeAccessible, makeAccessible, makeAccessible, rethrowException, rethrowRuntimeException, setField, shallowCopyFieldState
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getPublicMethodNamed
Finds a public method of the given name, regardless of its parameter definitions, -
getParameters
Returns an object-oriented view of parameters of each type. -
getPublicProperty
public static Object getPublicProperty(Object o, String p) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException -
getVmDefaultValueForPrimitiveType
Given the primitive type, returns the VM default value for that type in a boxed form.- Returns:
- null unless
Class.isPrimitive()
-