cascading.lingual.util
Class Reflection

java.lang.Object
  extended by cascading.lingual.util.Reflection

public class Reflection
extends Object

Reflection is a reflection utility helper.


Constructor Summary
Reflection()
           
 
Method Summary
static
<T> T
getStaticField(Class type, String fieldName)
           
static
<T> T
invokeInstanceMethod(Object target, String methodName)
           
static
<T> T
invokeInstanceMethod(Object target, String methodName, Object[] parameters, Class[] parameterTypes)
           
static
<T> T
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
 

Constructor Detail

Reflection

public Reflection()
Method Detail

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.