org.jboss.reflect.plugins
Class AnnotationInfoImpl

java.lang.Object
  extended byorg.jboss.util.JBossObject
      extended byorg.jboss.reflect.plugins.InheritableAnnotationHolder
          extended byorg.jboss.reflect.plugins.ClassInfoImpl
              extended byorg.jboss.reflect.plugins.InterfaceInfoImpl
                  extended byorg.jboss.reflect.plugins.AnnotationInfoImpl
All Implemented Interfaces:
AnnotatedInfo, AnnotationInfo, ClassInfo, Cloneable, InterfaceInfo, org.jboss.util.JBossInterface, ModifierInfo, Serializable, TypeInfo

public class AnnotationInfoImpl
extends InterfaceInfoImpl
implements AnnotationInfo

Annotation Info

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

Field Summary
protected  HashMap attributeMap
          Attribute Map
protected  AnnotationAttribute[] attributes
          The attributes
 
Fields inherited from class org.jboss.reflect.plugins.ClassInfoImpl
constructors, fieldMap, fields, interfaces, methods, modifiers, name, superclass, type
 
Fields inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
allAnnotations, allAnnotationsArray, declaredAnnotations, declaredAnnotationsArray, superHolder
 
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
AnnotationInfoImpl()
          Create a new AnnotationInfo.
AnnotationInfoImpl(String name, int modifiers)
          Create a new AnnotationInfo.
 
Method Summary
 boolean equals(Object o)
           
 AnnotationAttribute getAttribute(String name)
          Get an attribute
 AnnotationAttribute[] getAttributes()
          Get the attributes
 int getModifiers()
          Get the modifiers
 String getName()
          Get the name
 int hashCode()
           
 void setAttributes(AnnotationAttributeImpl[] attributes)
          Set the attributes
 
Methods inherited from class org.jboss.reflect.plugins.InterfaceInfoImpl
isInterface
 
Methods inherited from class org.jboss.reflect.plugins.ClassInfoImpl
findMethod, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getInterfaces, getSuperclass, getType, isPublic, isStatic, setDeclaredConstructors, setDeclaredFields, setDeclaredMethods, setInterfaces, setSuperclass, setType, toString
 
Methods inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
getAnnotation, getAnnotations, getDeclaredAnnotations, 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.ClassInfo
getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getInterfaces, getSuperclass, isInterface
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo
isPublic, isStatic
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
getType
 

Field Detail

attributes

protected AnnotationAttribute[] attributes
The attributes


attributeMap

protected HashMap attributeMap
Attribute Map

Constructor Detail

AnnotationInfoImpl

public AnnotationInfoImpl()
Create a new AnnotationInfo.


AnnotationInfoImpl

public AnnotationInfoImpl(String name,
                          int modifiers)
Create a new AnnotationInfo.

Parameters:
name - the name
modifiers - the modifiers
Method Detail

setAttributes

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

Parameters:
attributes - the attributes

getName

public String getName()
Description copied from interface: AnnotationInfo
Get the name

Specified by:
getName in interface AnnotationInfo
Overrides:
getName in class ClassInfoImpl

getModifiers

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

Specified by:
getModifiers in interface ModifierInfo
Overrides:
getModifiers in class ClassInfoImpl

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 ClassInfoImpl

hashCode

public int hashCode()
Overrides:
hashCode in class ClassInfoImpl


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