JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Class BytecodeAnnotationInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
              extended by org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
                  extended by org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
                      extended by org.jboss.reflect.plugins.bytecode.BytecodeAnnotationInfo
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, AnnotationInfo, ClassInfo, InterfaceInfo, ModifierInfo, TypeInfo, org.jboss.util.JBossInterface

public class BytecodeAnnotationInfo
extends BytecodeTypeInfo
implements AnnotationInfo

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
BytecodeTypeInfo.MarshalledClassInfo
 
Field Summary
protected  HashMap<String,AnnotationAttribute> attributeMap
          Attribute Map
protected  AnnotationAttribute[] attributes
          The attributes
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeTypeInfo
clazz, GET_CLASSLOADER_PERMISSION
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
allAnnotations, allAnnotationsArray, classBytes, initialized
 
Fields inherited from class org.jboss.reflect.plugins.bytecode.BytecodeAnnotatedInfo
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
BytecodeAnnotationInfo(BytecodeTypeInfoFactoryImpl factory, String name, ClassBytes classBytes, 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.bytecode.BytecodeTypeInfo
convertValue, convertValue, convertValue, generateConstructorInfo, generateConstructorInfo, generateFieldInfo, generateMethodInfo, generateMethodInfo, getActualTypeArguments, getAnnotations, getArrayClass, getArrayType, getAttachment, getAttachment, getClassBytes, getClassLoader, getClassLoaderInternal, getClassSignature, getComponentType, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getFactory, getGenericInterfaces, getGenericSuperclass, getHashCode, getInterfaces, getKeyType, getModifiers, getName, getOwnerType, getPackage, getPackageName, getPackageName, getRawType, getSimpleName, getSuperclass, getSuperHolder, getType, getTypeInfoFactory, getTypeVariable, getValueType, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isInterface, isMap, isPrimitive, isPublic, isStatic, isVolatile, newArrayInstance, setAttachment, toShortString, toString, writeReplace
 
Methods inherited from class org.jboss.reflect.plugins.bytecode.BytecodeInheritableAnnotationHolder
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, 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
getModifiers, isPublic, isStatic, isVolatile
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfo
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, isPrimitive, newArrayInstance, setAttachment
 

Field Detail

attributes

protected volatile AnnotationAttribute[] attributes
The attributes


attributeMap

protected volatile HashMap<String,AnnotationAttribute> attributeMap
Attribute Map

Constructor Detail

BytecodeAnnotationInfo

public BytecodeAnnotationInfo(BytecodeTypeInfoFactoryImpl factory,
                              String name,
                              ClassBytes classBytes,
                              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 BytecodeTypeInfo

hashCode

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

JBoss Reflection 2.2.1.SP1

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