org.codehaus.aspectwerkz.reflect.impl.javassist
Class JavassistConstructorInfo

java.lang.Object
  extended byorg.codehaus.aspectwerkz.reflect.impl.javassist.JavassistMemberInfo
      extended byorg.codehaus.aspectwerkz.reflect.impl.javassist.JavassistCodeInfo
          extended byorg.codehaus.aspectwerkz.reflect.impl.javassist.JavassistConstructorInfo
All Implemented Interfaces:
ConstructorInfo, MemberInfo, ReflectionInfo

public class JavassistConstructorInfo
extends org.codehaus.aspectwerkz.reflect.impl.javassist.JavassistCodeInfo
implements ConstructorInfo

Implementation of the ConstructorInfo interface for Javassist.

Author:
Jonas Bonér

Field Summary
protected  ClassInfo[] m_exceptionTypes
          A list with the exception types.
protected  ClassInfo[] m_parameterTypes
          A list with the parameter types.
 
Fields inherited from class org.codehaus.aspectwerkz.reflect.impl.javassist.JavassistMemberInfo
m_annotations, m_attributeExtractor, m_classInfoRepository, m_declaringType, m_loaderRef, m_member
 
Method Summary
static int calculateHash(javassist.CtConstructor constructor)
          Calculates the constructor hash.
 boolean equals(Object o)
           
 List getAnnotations()
          Returns the attributes.
static ConstructorInfo getConstructorInfo(javassist.CtConstructor constructor, ClassLoader loader)
          Returns the constructor info for the constructor specified.
 ClassInfo[] getExceptionTypes()
          Returns the exception types.
 ClassInfo[] getParameterTypes()
          Returns the parameter types.
 int hashCode()
           
 
Methods inherited from class org.codehaus.aspectwerkz.reflect.impl.javassist.JavassistMemberInfo
getDeclaringType, getModifiers, getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.ConstructorInfo
getExceptionTypes, getParameterTypes
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.MemberInfo
getDeclaringType
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.ReflectionInfo
getModifiers, getName
 

Field Detail

m_parameterTypes

protected ClassInfo[] m_parameterTypes
A list with the parameter types.


m_exceptionTypes

protected ClassInfo[] m_exceptionTypes
A list with the exception types.

Method Detail

getConstructorInfo

public static ConstructorInfo getConstructorInfo(javassist.CtConstructor constructor,
                                                 ClassLoader loader)
Returns the constructor info for the constructor specified.

Parameters:
constructor - the constructor
Returns:
the constructor info

calculateHash

public static int calculateHash(javassist.CtConstructor constructor)
Calculates the constructor hash.

Parameters:
constructor -
Returns:
the hash

getAnnotations

public List getAnnotations()
Returns the attributes.

Specified by:
getAnnotations in interface ReflectionInfo
Returns:
the attributes

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getParameterTypes

public ClassInfo[] getParameterTypes()
Returns the parameter types.

Returns:
the parameter types

getExceptionTypes

public ClassInfo[] getExceptionTypes()
Returns the exception types.

Returns:
the exception types


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.