Liferay 6.1.2-ce-ga3

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 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<?>[] getInterfaces(Object object)
           
static Class<?>[] getInterfaces(Object object, ClassLoader classLoader)
           
static Class<?>[] getParameterTypes(Object[] arguments)
           
static boolean isAnnotationDeclaredInClass(Class<? extends Annotation> annotationClass, Class<?> clazz)
           
 
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

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

getInterfaces

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

getInterfaces

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

getParameterTypes

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

isAnnotationDeclaredInClass

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

Liferay 6.1.2-ce-ga3