Liferay 7.0-ce-b4

com.liferay.portal.kernel.util
Class ReflectionUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.ReflectionUtil

public class ReflectionUtil
extends Object


Constructor Summary
ReflectionUtil()
           
 
Method Summary
static Object arrayClone(Object array)
           
static Field getDeclaredField(Class<?> clazz, String name)
           
static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes)
           
static Type getGenericInterface(Object object, Class<?> interfaceClass)
           
static Class<?> getGenericSuperType(Class<?> clazz)
           
static Class<?>[] getInterfaces(Object object)
           
static Class<?>[] getInterfaces(Object object, ClassLoader classLoader)
           
static Class<?>[] getParameterTypes(Object[] arguments)
           
static Set<Method> getVisibleMethods(Class<?> clazz)
           
static
<T> T
throwException(Throwable throwable)
           
static Field unfinalField(Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
Method Detail

arrayClone

public static Object arrayClone(Object array)

getDeclaredField

public static Field getDeclaredField(Class<?> clazz,
                                     String name)
                              throws Exception
Throws:
Exception

getDeclaredMethod

public static Method getDeclaredMethod(Class<?> clazz,
                                       String name,
                                       Class<?>... parameterTypes)
                                throws Exception
Throws:
Exception

getGenericInterface

public static Type getGenericInterface(Object object,
                                       Class<?> interfaceClass)

getGenericSuperType

public static Class<?> getGenericSuperType(Class<?> clazz)

getInterfaces

public static Class<?>[] getInterfaces(Object object)

getInterfaces

public static Class<?>[] getInterfaces(Object object,
                                       ClassLoader classLoader)

getParameterTypes

public static Class<?>[] getParameterTypes(Object[] arguments)

getVisibleMethods

public static Set<Method> getVisibleMethods(Class<?> clazz)

throwException

public static <T> T throwException(Throwable throwable)

unfinalField

public static Field unfinalField(Field field)
                          throws Exception
Throws:
Exception

Liferay 7.0-ce-b4