org.nuiton.jrst
Class ReflectUtil
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectUtil
public ReflectUtil()
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.