JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Class BytecodeInheritableAnnotationHolder

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
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
BytecodeTypeInfo

public abstract class BytecodeInheritableAnnotationHolder
extends BytecodeAnnotatedInfo

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

Field Summary
protected  Map<String,AnnotationValue> allAnnotations
          All annotations Map
protected  AnnotationValue[] allAnnotationsArray
          All annotations
protected  ClassBytes classBytes
           
protected  boolean 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
 
Constructor Summary
BytecodeInheritableAnnotationHolder(ClassBytes classBytes, AnnotationHelper annotationHelper)
           
 
Method Summary
protected  Map<String,AnnotationValue> getAllAnnotations()
          Get all the annotations as a map
 AnnotationValue getAnnotation(String name)
          Get an annotation
 AnnotationValue[] getAnnotations()
          Get the annotations
protected  AnnotationValue[] getAnnotations(Object obj)
           
abstract  ClassInfo getSuperHolder()
           
 boolean isAnnotationPresent(String name)
          Test whether an annotation is present
 void setupAnnotations(AnnotationValue[] annotations)
          Set up the annotations
 
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, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Field Detail

allAnnotations

protected volatile Map<String,AnnotationValue> allAnnotations
All annotations Map


allAnnotationsArray

protected volatile AnnotationValue[] allAnnotationsArray
All annotations


initialized

protected boolean initialized

classBytes

protected final ClassBytes classBytes
Constructor Detail

BytecodeInheritableAnnotationHolder

public BytecodeInheritableAnnotationHolder(ClassBytes classBytes,
                                           AnnotationHelper annotationHelper)
Method Detail

getAnnotations

public AnnotationValue[] getAnnotations()
Description copied from interface: AnnotatedInfo
Get the annotations

Returns:
the annotations. If there are no annotations a zero length array is returned

getAnnotations

protected AnnotationValue[] getAnnotations(Object obj)
Overrides:
getAnnotations in class BytecodeAnnotatedInfo

getAnnotation

public AnnotationValue getAnnotation(String name)
Description copied from interface: AnnotatedInfo
Get an annotation

Specified by:
getAnnotation in interface AnnotatedInfo
Overrides:
getAnnotation in class BytecodeAnnotatedInfo
Parameters:
name - the name
Returns:
the annotation or null if it is not there

isAnnotationPresent

public boolean isAnnotationPresent(String name)
Description copied from interface: AnnotatedInfo
Test whether an annotation is present

Specified by:
isAnnotationPresent in interface AnnotatedInfo
Overrides:
isAnnotationPresent in class BytecodeAnnotatedInfo
Parameters:
name - the name
Returns:
true when the annotation is present

setupAnnotations

public void setupAnnotations(AnnotationValue[] annotations)
Set up the annotations

Overrides:
setupAnnotations in class BytecodeAnnotatedInfo
Parameters:
annotations - the annotations

getAllAnnotations

protected Map<String,AnnotationValue> getAllAnnotations()
Get all the annotations as a map

Returns:
the map

getSuperHolder

public abstract ClassInfo getSuperHolder()

JBoss Reflection 2.2.1.SP1

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