Liferay 7.0-ce-m3

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 Class<?> getAnnotationDeclaringClass(Class<? extends Annotation> annotationClass, Class<?> clazz)
           
static Field getDeclaredField(Class<?> clazz, String name)
           
static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes)
           
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 boolean isAnnotationDeclaredInClass(Class<? extends Annotation> annotationClass, 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)

getAnnotationDeclaringClass

public static Class<?> getAnnotationDeclaringClass(Class<? extends Annotation> annotationClass,
                                                   Class<?> clazz)

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

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)

isAnnotationDeclaredInClass

public static boolean isAnnotationDeclaredInClass(Class<? extends Annotation> annotationClass,
                                                  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-m3