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()
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