com.liferay.portal.kernel.util
Class ReflectionUtil
java.lang.Object
com.liferay.portal.kernel.util.ReflectionUtil
public class ReflectionUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtil
public ReflectionUtil()
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)