public final class ReflectionHelper
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.Class[] |
EMPTY_CLASS_ARRAY |
Deprecated.
in 2.0. Will become private in a future version.
|
Modifier and Type | Method | Description |
---|---|---|
static <T> java.lang.reflect.Constructor<T> |
getConstructor(java.lang.Class<T> instantiable,
java.lang.Class<?>... constructorParameterTypes) |
|
static boolean |
hasDefaultConstructor(java.lang.Class<?> aClass) |
|
static <T> T |
newInstance(java.lang.Class<T> aClass) |
This method may return null if the call to create a newInstance() fails.
|
static <T> T |
newInstance(java.lang.reflect.Constructor<T> constructor,
java.lang.Object... constructorArguments) |
|
static boolean |
parameterTypesMatch(java.lang.Class<?>[] candidateParamTypes,
java.lang.Class<?>... desiredParameterTypes) |
@Deprecated public static final java.lang.Class[] EMPTY_CLASS_ARRAY
public static <T> java.lang.reflect.Constructor<T> getConstructor(java.lang.Class<T> instantiable, java.lang.Class<?>... constructorParameterTypes)
public static boolean parameterTypesMatch(java.lang.Class<?>[] candidateParamTypes, java.lang.Class<?>... desiredParameterTypes)
public static <T> T newInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... constructorArguments)
public static <T> T newInstance(java.lang.Class<T> aClass)
public static boolean hasDefaultConstructor(java.lang.Class<?> aClass)
Copyright © 2004–2017. All rights reserved.