public class ReflectConstructorInfoImpl extends ConstructorInfoImpl
Modifier and Type | Field and Description |
---|---|
protected Constructor<?> |
constructor
The constructor
|
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
|
Object |
newInstance(Object[] args)
Create a new instance
|
void |
setConstructor(Constructor<?> constructor)
Set the constructor
|
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 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 void setConstructor(Constructor<?> constructor)
constructor
- the constructorpublic Constructor<?> getConstructor()
public Object newInstance(Object[] args) throws Throwable
ConstructorInfo
newInstance
in interface ConstructorInfo
newInstance
in class ConstructorInfoImpl
args
- the argumentsThrowable
- for any errorCopyright © 2014 JBoss by Red Hat. All rights reserved.