org.jboss.reflect.plugins.introspection
Class ReflectConstructorInfoImpl
java.lang.Object
org.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.AnnotationHolder
org.jboss.reflect.plugins.ConstructorInfoImpl
org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl
- All Implemented Interfaces:
- Serializable, Cloneable, AnnotatedInfo, ConstructorInfo, MemberInfo, ModifierInfo, org.jboss.util.JBossInterface
public class ReflectConstructorInfoImpl
- extends ConstructorInfoImpl
Constructor info
- Author:
- Bill Burke, Adrian Brock
- See Also:
- Serialized Form
Fields inherited from class org.jboss.util.JBossObject |
hashCode, log, toString |
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo |
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 |
Methods inherited from class org.jboss.reflect.plugins.ConstructorInfoImpl |
calculateHash, equals, getDeclaringClass, getExceptionTypes, getModifiers, getParameters, getParameterTypes, hashCode, isPublic, isStatic, isVolatile, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation |
Methods inherited from interface org.jboss.util.JBossInterface |
clone, toShortString, toShortString |
constructor
protected transient Constructor<?> constructor
- The constructor
ReflectConstructorInfoImpl
public ReflectConstructorInfoImpl()
- Create a new ConstructorInfo.
ReflectConstructorInfoImpl
public ReflectConstructorInfoImpl(AnnotationValue[] annotations,
TypeInfo[] parameterTypes,
AnnotationValue[][] parameterAnnotations,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
- Create a new ConstructorInfo.
- Parameters:
annotations
- the annotationsparameterTypes
- the parameter typesparameterAnnotations
- the parameter annotationsexceptionTypes
- the exception typesmodifiers
- the modifiersdeclaring
- the declaring class
ReflectConstructorInfoImpl
public ReflectConstructorInfoImpl(AnnotationValue[] annotations,
ParameterInfo[] parameters,
ClassInfo[] exceptionTypes,
int modifiers,
ClassInfo declaring)
- Create a new ConstructorInfo.
- Parameters:
annotations
- the annotationsparameters
- the parametersexceptionTypes
- the exception typesmodifiers
- the modifiersdeclaring
- the declaring class
setConstructor
public void setConstructor(Constructor<?> constructor)
- Set the constructor
- Parameters:
constructor
- the constructor
getConstructor
public Constructor<?> getConstructor()
- Get the constructor
- Returns:
- the constructor
newInstance
public Object newInstance(Object[] args)
throws Throwable
- Description copied from interface:
ConstructorInfo
- Create a new instance
- Specified by:
newInstance
in interface ConstructorInfo
- Overrides:
newInstance
in class ConstructorInfoImpl
- Parameters:
args
- the arguments
- Returns:
- the instance
- Throws:
Throwable
- for any error
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.