JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins
Class AnnotationInfoImpl

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

public class AnnotationInfoImpl
extends InterfaceInfoImpl
implements AnnotationInfo

Annotation Info

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.reflect.plugins.ClassInfoImpl
ClassInfoImpl.MarshalledClassInfo
 
Field Summary
protected  HashMap<String,AnnotationAttribute> attributeMap
          Attribute Map
protected  AnnotationAttribute[] attributes
          The attributes
 
Fields inherited from class org.jboss.reflect.plugins.ClassInfoImpl
classInfoHelper, constructors, fieldMap, fields, genericInterfaces, genericSuperclass, interfaces, methods, modifiers, name, packageInfo, superclass, typeInfoFactory, UNKNOWN_CLASS, UNKNOWN_CLASSES, UNKNOWN_CONSTRUCTORS, UNKNOWN_FIELDS, UNKNOWN_INTERFACES, UNKNOWN_METHODS, UNKNOWN_TYPE, UNKNOWN_TYPES
 
Fields inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
allAnnotations, allAnnotationsArray, annotatedElement, annotationHelper, declaredAnnotations, declaredAnnotationsArray
 
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 annotationName)
          Get an attribute
 AnnotationAttribute[] getAttributes()
          Get the attributes
 int getModifiers()
          Get the modifiers
 int hashCode()
           
 boolean isAnnotation()
          Whether this type is an annotation
 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
convertValue, convertValue, convertValue, findConstructor, findMethod, getActualTypeArguments, getAnnotation, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getClassLoader, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getName, getOwnerType, getPackage, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotationPresent, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, setClassInfoHelper, setDeclaredConstructors, setDeclaredFields, setDeclaredMethods, setGenericInterfaces, setGenericSuperclass, setInterfaces, setType, setTypeInfoFactory, toString, writeReplace
 
Methods inherited from class org.jboss.reflect.plugins.InheritableAnnotationHolder
getAllAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, isDeclaredAnnotationPresent, setAnnotatedElement, setAnnotationHelper, 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, 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.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, getTypeVariable, 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
isPublic, isStatic, isVolatile
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getType, getTypeInfoFactory, 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

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

isAnnotation

public boolean isAnnotation()
Description copied from interface: TypeInfo
Whether this type is an annotation

Specified by:
isAnnotation in interface TypeInfo
Overrides:
isAnnotation in class ClassInfoImpl
Returns:
true when an annotation

getModifiers

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

Specified by:
getModifiers in interface ModifierInfo
Overrides:
getModifiers in class ClassInfoImpl
Returns:
the modifiers

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 annotationName)
Description copied from interface: AnnotationInfo
Get an attribute

Specified by:
getAttribute in interface AnnotationInfo
Parameters:
annotationName - 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

JBoss Reflection 2.2.1.SP1

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