public class ReflectionUtil
extends Object
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
arrayClone(Object array) |
static Field |
getDeclaredField(Class<?> clazz,
String name) |
static Field[] |
getDeclaredFields(Class<?> clazz) |
static Method |
getDeclaredMethod(Class<?> clazz,
String name,
Class<?>... parameterTypes) |
static Type |
getGenericInterface(Object object,
Class<?> interfaceClass)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static Class<?> |
getGenericSuperType(Class<?> clazz)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static Class<?>[] |
getInterfaces(Object object) |
static Class<?>[] |
getInterfaces(Object object,
ClassLoader classLoader) |
static Class<?>[] |
getInterfaces(Object object,
ClassLoader classLoader,
Consumer<ClassNotFoundException> classNotFoundHandler) |
static Class<?>[] |
getParameterTypes(Object[] arguments)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static Set<Method> |
getVisibleMethods(Class<?> clazz)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static <T> T |
throwException(Throwable throwable) |
static Field |
unfinalField(Field field) |
public static Object arrayClone(Object array)
public static Field getDeclaredField(Class<?> clazz, String name) throws Exception
Exception
public static Field[] getDeclaredFields(Class<?> clazz) throws Exception
Exception
public static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws Exception
Exception
@Deprecated public static Type getGenericInterface(Object object, Class<?> interfaceClass)
@Deprecated public static Class<?> getGenericSuperType(Class<?> clazz)
public static Class<?>[] getInterfaces(Object object)
public static Class<?>[] getInterfaces(Object object, ClassLoader classLoader)
public static Class<?>[] getInterfaces(Object object, ClassLoader classLoader, Consumer<ClassNotFoundException> classNotFoundHandler)
@Deprecated public static Class<?>[] getParameterTypes(Object[] arguments)
@Deprecated public static Set<Method> getVisibleMethods(Class<?> clazz)
public static <T> T throwException(Throwable throwable)
public static Field unfinalField(Field field) throws Exception
Exception