hudson.util
Class ReflectionUtils

java.lang.Object
  extended by org.springframework.util.ReflectionUtils
      extended by hudson.util.ReflectionUtils

public class ReflectionUtils
extends org.springframework.util.ReflectionUtils

Utility code for reflection.

Since:
1.351
Author:
Kohsuke Kawaguchi

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

ReflectionUtils

public ReflectionUtils()
Method Detail

getPublicMethodNamed

public static Method getPublicMethodNamed(Class c,
                                          String methodName)
Finds a public method of the given name, regardless of its parameter definitions,


getParameters

public static List<ReflectionUtils.Parameter> getParameters(Method m)
Returns an object-oriented view of parameters of each type.


getPublicProperty

public static Object getPublicProperty(Object o,
                                       String p)
                                throws InvocationTargetException,
                                       NoSuchMethodException,
                                       IllegalAccessException
Throws:
InvocationTargetException
NoSuchMethodException
IllegalAccessException

getVmDefaultValueForPrimitiveType

public static Object getVmDefaultValueForPrimitiveType(Class<?> type)
Given the primitive type, returns the VM default value for that type in a boxed form.



Copyright © 2004-2013. All Rights Reserved.