com.liferay.portal.kernel.util
Class ReflectionUtil

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

public class ReflectionUtil
extends java.lang.Object

Author:
Brian Wing Shun Chan, Miguel Pastor

Constructor Summary
ReflectionUtil()
           
 
Method Summary
static java.lang.Class<?> getAnnotationDeclaringClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass, java.lang.Class<?> clazz)
           
static java.lang.reflect.Field getDeclaredField(java.lang.Class<?> clazz, java.lang.String name)
           
static java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)
           
static java.lang.Class<?>[] getParameterTypes(java.lang.Object[] arguments)
           
static boolean isAnnotationDeclaredInClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass, java.lang.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 java.lang.Class<?> getAnnotationDeclaringClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
                                                             java.lang.Class<?> clazz)

getDeclaredField

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

getDeclaredMethod

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

getParameterTypes

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

isAnnotationDeclaredInClass

public static boolean isAnnotationDeclaredInClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
                                                  java.lang.Class<?> clazz)