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

java.lang.Object
  extended byorg.codehaus.aspectwerkz.reflect.impl.javassist.JavassistMemberInfo
      extended byorg.codehaus.aspectwerkz.reflect.impl.javassist.JavassistFieldInfo
All Implemented Interfaces:
FieldInfo, MemberInfo, ReflectionInfo

public class JavassistFieldInfo
extends JavassistMemberInfo
implements FieldInfo

Implementation of the FieldInfo interface for Javassist.

Author:
Jonas Bonér

Field Summary
 
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.CtField field)
          Calculates the field hash.
 boolean equals(Object o)
           
 List getAnnotations()
          Returns the attributes.
static FieldInfo getFieldInfo(javassist.CtField field, ClassLoader loader)
          Returns the field info for the field specified.
 ClassInfo getType()
          Returns the field type.
 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.MemberInfo
getDeclaringType
 
Methods inherited from interface org.codehaus.aspectwerkz.reflect.ReflectionInfo
getModifiers, getName
 

Method Detail

getFieldInfo

public static FieldInfo getFieldInfo(javassist.CtField field,
                                     ClassLoader loader)
Returns the field info for the field specified.

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

calculateHash

public static int calculateHash(javassist.CtField field)
Calculates the field hash.

Parameters:
field -
Returns:
the hash

getAnnotations

public List getAnnotations()
Returns the attributes.

Specified by:
getAnnotations in interface ReflectionInfo
Returns:
the attributes

getType

public ClassInfo getType()
Returns the field type.

Specified by:
getType in interface FieldInfo
Returns:
the field type

equals

public boolean equals(Object o)

hashCode

public int hashCode()


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