public class ReflectConstructorInfoImpl extends ConstructorInfoImpl
Modifier and Type | Field and Description |
---|---|
protected Constructor<?> |
constructor
The constructor, this only gets initialized after newInstance() or getConstructor() has been called to save memory
|
declaringClass, exceptionTypes, hash, modifiers, parameters, parameterTypes
annotationMap, annotationsArray
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC
Constructor and Description |
---|
ReflectConstructorInfoImpl()
Create a new ConstructorInfo.
|
ReflectConstructorInfoImpl(AnnotationValue[] annotations,
ParameterInfo[] parameters,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new ConstructorInfo.
|
ReflectConstructorInfoImpl(AnnotationValue[] annotations,
TypeInfo[] parameterTypes,
AnnotationValue[][] parameterAnnotations,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
Create a new ConstructorInfo.
|
Modifier and Type | Method and Description |
---|---|
Constructor<?> |
getConstructor()
Get the constructor
|
protected void |
initConstructor() |
Object |
newInstance(Object[] args)
Create a new instance
|
calculateHash, equals, getDeclaringClass, getExceptionTypes, getModifiers, getParameters, getParameterTypes, hashCode, isPublic, isStatic, isVolatile, toString
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected transient volatile Constructor<?> constructor
public ReflectConstructorInfoImpl()
public ReflectConstructorInfoImpl(AnnotationValue[] annotations, TypeInfo[] parameterTypes, AnnotationValue[][] parameterAnnotations, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
annotations
- the annotationsparameterTypes
- the parameter typesparameterAnnotations
- the parameter annotationsexceptionTypes
- the exception typesmodifiers
- the modifiersdeclaring
- the declaring classpublic ReflectConstructorInfoImpl(AnnotationValue[] annotations, ParameterInfo[] parameters, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
annotations
- the annotationsparameters
- the parametersexceptionTypes
- the exception typesmodifiers
- the modifiersdeclaring
- the declaring classpublic Constructor<?> getConstructor()
public Object newInstance(Object[] args) throws Throwable
ConstructorInfo
newInstance
in interface ConstructorInfo
newInstance
in class ConstructorInfoImpl
args
- the argumentsThrowable
- for any errorprotected void initConstructor()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.