org.jboss.reflect.plugins
Class ConstructorInfoImpl

java.lang.Object
  extended byorg.jboss.util.JBossObject
      extended byorg.jboss.reflect.plugins.AnnotationHolder
          extended byorg.jboss.reflect.plugins.ConstructorInfoImpl
All Implemented Interfaces:
AnnotatedInfo, Cloneable, ConstructorInfo, org.jboss.util.JBossInterface, MemberInfo, ModifierInfo, Serializable

public class ConstructorInfoImpl
extends AnnotationHolder
implements ConstructorInfo

Constructor info

Author:
Bill Burke, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  Constructor constructor
          The constructor
protected  ClassInfo declaringClass
          The declring class
protected  ClassInfo[] exceptionTypes
          The exception types
protected  int hash
          The hash code
protected  int modifiers
          The modifiers
protected  ParameterInfo[] parameters
          The parameters
protected  TypeInfo[] parameterTypes
          The parameter types
 
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
ConstructorInfoImpl()
          Create a new ConstructorInfo.
ConstructorInfoImpl(AnnotationValue[] annotations, ParameterInfo[] parameters, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
          Create a new ConstructorInfo.
ConstructorInfoImpl(AnnotationValue[] annotations, TypeInfo[] parameterTypes, ClassInfo[] exceptionTypes, int modifiers, ClassInfo declaring)
          Create a new ConstructorInfo.
 
Method Summary
protected  void calculateHash()
           
 boolean equals(Object obj)
           
 Constructor getConstructor()
          Get the constructor
 ClassInfo getDeclaringClass()
          Get the declaring class
 ClassInfo[] getExceptionTypes()
          Get the exception types
 int getModifiers()
          Get the modifiers
 ParameterInfo[] getParameters()
          Get the parameters
 TypeInfo[] getParameterTypes()
          Get the parameter types
 int hashCode()
           
 boolean isPublic()
          Whether it is public
 boolean isStatic()
          Whether it is static
 void setConstructor(Constructor constructor)
          Set the constructor
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
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, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Field Detail

constructor

protected Constructor constructor
The constructor


declaringClass

protected ClassInfo declaringClass
The declring class


parameterTypes

protected TypeInfo[] parameterTypes
The parameter types


parameters

protected ParameterInfo[] parameters
The parameters


exceptionTypes

protected ClassInfo[] exceptionTypes
The exception types


modifiers

protected int modifiers
The modifiers


hash

protected int hash
The hash code

Constructor Detail

ConstructorInfoImpl

public ConstructorInfoImpl()
Create a new ConstructorInfo.


ConstructorInfoImpl

public ConstructorInfoImpl(AnnotationValue[] annotations,
                           TypeInfo[] parameterTypes,
                           ClassInfo[] exceptionTypes,
                           int modifiers,
                           ClassInfo declaring)
Create a new ConstructorInfo.

Parameters:
annotations - the annotations
parameterTypes - the parameter types
exceptionTypes - the exception types
modifiers - the modifiers
declaring - the declaring class

ConstructorInfoImpl

public ConstructorInfoImpl(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

setConstructor

public void setConstructor(Constructor constructor)
Set the constructor

Parameters:
constructor - the constructor

getConstructor

public Constructor getConstructor()
Description copied from interface: ConstructorInfo
Get the constructor

Specified by:
getConstructor in interface ConstructorInfo
Returns:
the constructor

getDeclaringClass

public ClassInfo getDeclaringClass()
Description copied from interface: ConstructorInfo
Get the declaring class

Specified by:
getDeclaringClass in interface ConstructorInfo
Returns:
the class

getParameterTypes

public TypeInfo[] getParameterTypes()
Description copied from interface: ConstructorInfo
Get the parameter types

Specified by:
getParameterTypes in interface ConstructorInfo
Returns:
the parameters types

getParameters

public ParameterInfo[] getParameters()
Description copied from interface: ConstructorInfo
Get the parameters

Specified by:
getParameters in interface ConstructorInfo
Returns:
the parameters

getExceptionTypes

public ClassInfo[] getExceptionTypes()
Description copied from interface: ConstructorInfo
Get the exception types

Specified by:
getExceptionTypes in interface ConstructorInfo
Returns:
the exception types

getModifiers

public int getModifiers()
Description copied from interface: ModifierInfo
Get the modifiers

Specified by:
getModifiers in interface ModifierInfo
Returns:
the modifiers

isStatic

public boolean isStatic()
Description copied from interface: ModifierInfo
Whether it is static

Specified by:
isStatic in interface ModifierInfo
Returns:
true when static

isPublic

public boolean isPublic()
Description copied from interface: ModifierInfo
Whether it is public

Specified by:
isPublic in interface ModifierInfo
Returns:
true when public

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

calculateHash

protected void calculateHash()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.