public class ConstructorUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Class |
NULL_CLASS
This variable is to be used when it is not possible to determine the
class of the argument because its value is null.
|
| Modifier and Type | Method and Description |
|---|---|
static Constructor |
getMatchingConstructor(Class<?> klass,
Class<?>[] argumentsClasses)
Find a constructor that can be used given an array of argument types.
|
static Type |
getParameterType(Constructor c,
int index)
Returns the type of the parameter at a given index of the given constructor
|
public static Class NULL_CLASS
public static Constructor getMatchingConstructor(Class<?> klass, Class<?>[] argumentsClasses)
klass - the class to introspectargumentsClasses - the argumentspublic static Type getParameterType(Constructor c, int index)
c - the constructorindex - the index of the parameterCopyright © 2019 LSST. All rights reserved.