org.nuiton.jrst
Class ReflectUtil

java.lang.Object
  extended by org.nuiton.jrst.ReflectUtil

public class ReflectUtil
extends Object

Some usefull methods to obtains none accessible fields and method from some classes.

Since:
1.0.6
Author:
tchemit

Constructor Summary
ReflectUtil()
           
 
Method Summary
static Field getField(Class<?> klass, String fieldName)
           
static Method getMethod(Class<?> klass, String methodName, Class<?>[] paramTypes)
           
static
<O> O
invokeMethod(Method m, Object o, Object... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectUtil

public ReflectUtil()
Method Detail

getMethod

public static Method getMethod(Class<?> klass,
                               String methodName,
                               Class<?>[] paramTypes)

getField

public static Field getField(Class<?> klass,
                             String fieldName)

invokeMethod

public static <O> O invokeMethod(Method m,
                                 Object o,
                                 Object... params)


Copyright © 2012 CodeLutin. All Rights Reserved.