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

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.JavassistMethodInfo
All Implemented Interfaces:
MemberInfo, MethodInfo, ReflectionInfo

public class JavassistMethodInfo
extends org.codehaus.aspectwerkz.reflect.impl.javassist.JavassistCodeInfo
implements MethodInfo

Implementation of the MethodInfo 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.CtMethod method)
          Calculates the method hash.
 boolean equals(Object o)
           
 List getAnnotations()
          Returns the annotations.
 ClassInfo[] getExceptionTypes()
          Returns the exception types.
static MethodInfo getMethodInfo(javassist.CtMethod method, ClassLoader loader)
          Returns the method info for the method specified.
 ClassInfo[] getParameterTypes()
          Returns the parameter types.
 ClassInfo getReturnType()
          Returns the return type.
 int hashCode()
           
 String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.MethodInfo
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

getMethodInfo

public static MethodInfo getMethodInfo(javassist.CtMethod method,
                                       ClassLoader loader)
Returns the method info for the method specified.

Parameters:
method - the method
loader - the class loader
Returns:
the method info

calculateHash

public static int calculateHash(javassist.CtMethod method)
Calculates the method hash.

Parameters:
method -
Returns:
the hash

getAnnotations

public List getAnnotations()
Returns the annotations.

Specified by:
getAnnotations in interface ReflectionInfo
Returns:
the annotations

getReturnType

public ClassInfo getReturnType()
Returns the return type.

Specified by:
getReturnType in interface MethodInfo
Returns:
the return type

equals

public boolean equals(Object o)

hashCode

public int hashCode()

toString

public String toString()

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.