JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.introspection
Class ReflectConstructorInfoImpl

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.AnnotationHolder
              extended by org.jboss.reflect.plugins.ConstructorInfoImpl
                  extended by 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

Field Summary
protected  Constructor<?> constructor
          The constructor, this only gets initialized after newInstance() or getConstructor() has been called to save memory
 
Fields inherited from class org.jboss.reflect.plugins.ConstructorInfoImpl
declaringClass, exceptionTypes, hash, modifiers, parameters, parameterTypes
 
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder
annotationMap, annotationsArray
 
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
 
Constructor Summary
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.
 
Method Summary
 Constructor<?> getConstructor()
          Get the constructor
protected  void initConstructor()
           
 Object newInstance(Object[] args)
          Create a new instance
 
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.reflect.plugins.AnnotationHolder
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Field Detail

constructor

protected transient volatile Constructor<?> constructor
The constructor, this only gets initialized after newInstance() or getConstructor() has been called to save memory

Constructor Detail

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 annotations
parameterTypes - the parameter types
parameterAnnotations - the parameter annotations
exceptionTypes - the exception types
modifiers - the modifiers
declaring - the declaring class

ReflectConstructorInfoImpl

public ReflectConstructorInfoImpl(AnnotationValue[] annotations,
                                  ParameterInfo[] parameters,
                                  ClassInfo[] exceptionTypes,
                                  int modifiers,
                                  ClassInfo declaring)
Create a new ConstructorInfo.

Parameters:
annotations - the annotations
parameters - the parameters
exceptionTypes - the exception types
modifiers - the modifiers
declaring - the declaring class
Method Detail

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

initConstructor

protected void initConstructor()

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.