sharin.util
Class ReflectUtils

java.lang.Object
  extended by sharin.util.ReflectUtils

public class ReflectUtils
extends Object


Constructor Summary
ReflectUtils()
           
 
Method Summary
static
<T> T
get(Field field, Object object)
           
static
<T> T
invoke(Method method, Object obj, Object... args)
           
static
<T> T
newInstance(Class<T> clazz)
           
static void set(Field field, Object object, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectUtils

public ReflectUtils()
Method Detail

newInstance

public static <T> T newInstance(Class<T> clazz)

get

public static <T> T get(Field field,
                        Object object)

set

public static void set(Field field,
                       Object object,
                       Object value)

invoke

public static <T> T invoke(Method method,
                           Object obj,
                           Object... args)


Copyright © 2009 SHU. All Rights Reserved.