public class ReflectionUtil
extends java.lang.Object
| Constructor and Description |
|---|
ReflectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.reflect.Constructor |
getConstructorWithNoParams(java.lang.Class clazz) |
private static <T> T |
instantiateWithConstructor(java.lang.reflect.Constructor<T> constructor) |
private static <T> boolean |
isValidInstance(T instance) |
static <T> T |
newInstance(java.lang.Class<T> clazz) |
private static <T> T |
newInstanceWithoutParameterTypes(java.lang.reflect.Constructor<T> constructor) |
private static <T> T |
newInstanceWithParameterTypes(java.lang.reflect.Constructor<T> constructor) |
private static <T> void |
setAccessible(java.lang.reflect.Constructor<T> constructor) |
public static <T> T newInstance(java.lang.Class<T> clazz)
private static <T> boolean isValidInstance(T instance)
private static <T> T instantiateWithConstructor(java.lang.reflect.Constructor<T> constructor)
private static <T> T newInstanceWithoutParameterTypes(java.lang.reflect.Constructor<T> constructor)
private static <T> T newInstanceWithParameterTypes(java.lang.reflect.Constructor<T> constructor)
private static <T> void setAccessible(java.lang.reflect.Constructor<T> constructor)
private static java.lang.reflect.Constructor getConstructorWithNoParams(java.lang.Class clazz)