org.jboss.reflect.plugins.javassist
Class JavassistAnnotationInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
              extended by org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
                  extended by org.jboss.reflect.plugins.javassist.JavassistTypeInfo
                      extended by org.jboss.reflect.plugins.javassist.JavassistAnnotationInfo
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, AnnotationInfo, ClassInfo, InterfaceInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface

public class JavassistAnnotationInfo
extends JavassistTypeInfo
implements AnnotationInfo

Version:
$Revision: 45764 $
Author:
Kabir Khan
See Also:
Serialized Form

Field Summary
protected  HashMap<String,AnnotationAttribute> attributeMap
          Attribute Map
protected  AnnotationAttribute[] attributes
          The attributes
 
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
allAnnotations, allAnnotationsArray, ctClass
 
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
annotationHelper, 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
JavassistAnnotationInfo(JavassistTypeInfoFactoryImpl factory, javassist.CtClass ctClass, Class<? extends Object> clazz)
           
 
Method Summary
 boolean equals(Object o)
           
 AnnotationAttribute getAttribute(String name)
          Get an attribute
 AnnotationAttribute[] getAttributes()
          Get the attributes
 int hashCode()
           
 void setAttributes(AnnotationAttributeImpl[] attributes)
          Set the attributes
 
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistTypeInfo
convertValue, convertValue, convertValue, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getAnnotatedTarget, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getParameterTypes, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, toShortString, toString
 
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
getAllAnnotations, 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, list, notEqual, 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.AnnotationInfo
getName
 
Methods inherited from interface org.jboss.reflect.spi.ClassInfo
getActualTypeArguments, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getOwnerType, getPackage, getRawType, getSuperclass, getValueType, isInterface
 
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
 
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo
getModifiers, isPublic, isStatic, isVolatile
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Field Detail

attributes

protected AnnotationAttribute[] attributes
The attributes


attributeMap

protected HashMap<String,AnnotationAttribute> attributeMap
Attribute Map

Constructor Detail

JavassistAnnotationInfo

public JavassistAnnotationInfo(JavassistTypeInfoFactoryImpl factory,
                               javassist.CtClass ctClass,
                               Class<? extends Object> clazz)
Method Detail

setAttributes

public void setAttributes(AnnotationAttributeImpl[] attributes)
Set the attributes

Parameters:
attributes - the attributes

getAttributes

public AnnotationAttribute[] getAttributes()
Description copied from interface: AnnotationInfo
Get the attributes

Specified by:
getAttributes in interface AnnotationInfo
Returns:
the attributes

getAttribute

public AnnotationAttribute getAttribute(String name)
Description copied from interface: AnnotationInfo
Get an attribute

Specified by:
getAttribute in interface AnnotationInfo
Parameters:
name - the name of the attribute
Returns:
the attribute

equals

public boolean equals(Object o)
Overrides:
equals in class JavassistTypeInfo

hashCode

public int hashCode()
Overrides:
hashCode in class org.jboss.util.JBossObject


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