public class AnnotatedConstructor<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AnnotatedConstructor.ParameterInfo |
Constructor and Description |
---|
AnnotatedConstructor(java.lang.reflect.Constructor<T> constructor) |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<AnnotatedConstructor<?>> |
findAnnotatedConstructor(java.lang.Class<?> clazz) |
java.lang.Class<?> |
getDeclaringClass() |
int |
getParameterCount() |
AnnotatedConstructor.ParameterInfo[] |
getParameterInfos() |
T |
newInstance(java.lang.Object... args) |
public AnnotatedConstructor(java.lang.reflect.Constructor<T> constructor)
public static java.util.Optional<AnnotatedConstructor<?>> findAnnotatedConstructor(java.lang.Class<?> clazz)
public int getParameterCount()
public AnnotatedConstructor.ParameterInfo[] getParameterInfos()
public T newInstance(java.lang.Object... args) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
public java.lang.Class<?> getDeclaringClass()