public class AnnotationInfoImpl extends InterfaceInfoImpl implements AnnotationInfo
ClassInfoImpl.MarshalledClassInfo
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,AnnotationAttribute> |
attributeMap
Attribute Map
|
protected AnnotationAttribute[] |
attributes
The attributes
|
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
allAnnotations, allAnnotationsArray, annotatedElement, annotationHelper, declaredAnnotations, declaredAnnotationsArray
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 and Description |
---|
AnnotationInfoImpl()
Create a new AnnotationInfo.
|
AnnotationInfoImpl(String name,
int modifiers)
Create a new AnnotationInfo.
|
Modifier and Type | Method and Description |
---|---|
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
|
isInterface
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
getAllAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, isDeclaredAnnotationPresent, setAnnotatedElement, setAnnotationHelper, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getName
getActualTypeArguments, getComponentType, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getGenericInterfaces, getGenericSuperclass, getInterfaces, getKeyType, getOwnerType, getPackage, getRawType, getSuperclass, getTypeVariable, getValueType, isInterface
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
isPublic, isStatic, isVolatile
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getType, getTypeInfoFactory, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
protected AnnotationAttribute[] attributes
protected HashMap<String,AnnotationAttribute> attributeMap
public AnnotationInfoImpl()
public AnnotationInfoImpl(String name, int modifiers)
name
- the namemodifiers
- the modifierspublic void setAttributes(AnnotationAttributeImpl[] attributes)
attributes
- the attributespublic boolean isAnnotation()
TypeInfo
isAnnotation
in interface TypeInfo
isAnnotation
in class ClassInfoImpl
public int getModifiers()
ModifierInfo
getModifiers
in interface ModifierInfo
getModifiers
in class ClassInfoImpl
public AnnotationAttribute[] getAttributes()
AnnotationInfo
getAttributes
in interface AnnotationInfo
public AnnotationAttribute getAttribute(String annotationName)
AnnotationInfo
getAttribute
in interface AnnotationInfo
annotationName
- the name of the attributepublic boolean equals(Object o)
equals
in class ClassInfoImpl
public int hashCode()
hashCode
in class ClassInfoImpl
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.