cascading.lingual.util
Class Reflection
java.lang.Object
cascading.lingual.util.Reflection
public class Reflection
- extends Object
Reflection is a reflection utility helper.
Method Summary |
static
|
getStaticField(Class type,
String fieldName)
|
static
|
invokeInstanceMethod(Object target,
String methodName)
|
static
|
invokeInstanceMethod(Object target,
String methodName,
Object[] parameters,
Class[] parameterTypes)
|
static
|
invokeInstanceMethod(Object target,
String methodName,
Object parameter,
Class parameterType)
|
static Object |
invokeStaticMethod(ClassLoader loader,
String typeString,
String methodName,
Object[] parameters,
Class[] parameterTypes)
|
static Object |
invokeStaticMethod(Class type,
String methodName,
Object[] parameters,
Class[] parameterTypes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reflection
public Reflection()
invokeStaticMethod
public static Object invokeStaticMethod(ClassLoader loader,
String typeString,
String methodName,
Object[] parameters,
Class[] parameterTypes)
invokeStaticMethod
public static Object invokeStaticMethod(Class type,
String methodName,
Object[] parameters,
Class[] parameterTypes)
getStaticField
public static <T> T getStaticField(Class type,
String fieldName)
invokeInstanceMethod
public static <T> T invokeInstanceMethod(Object target,
String methodName)
invokeInstanceMethod
public static <T> T invokeInstanceMethod(Object target,
String methodName,
Object parameter,
Class parameterType)
invokeInstanceMethod
public static <T> T invokeInstanceMethod(Object target,
String methodName,
Object[] parameters,
Class[] parameterTypes)
Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.