org.jboss.reflect.plugins.javassist
Class JavassistInheritableAnnotationHolder

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
              extended by org.jboss.reflect.plugins.javassist.JavassistInheritableAnnotationHolder
All Implemented Interfaces:
Serializable, Cloneable, AnnotatedInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
JavassistTypeInfo

public abstract class JavassistInheritableAnnotationHolder
extends JavassistAnnotatedInfo

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

Field Summary
protected  Map<String,AnnotationValue> allAnnotations
          All annotations Map
protected  AnnotationValue[] allAnnotationsArray
          All annotations
protected  javassist.CtClass ctClass
           
 
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo
annotationHelper, annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
JavassistInheritableAnnotationHolder(javassist.CtClass ctClass, 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  JavassistInheritableAnnotationHolder 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 Map<String,AnnotationValue> allAnnotations
All annotations Map


allAnnotationsArray

protected AnnotationValue[] allAnnotationsArray
All annotations


ctClass

protected javassist.CtClass ctClass
Constructor Detail

JavassistInheritableAnnotationHolder

public JavassistInheritableAnnotationHolder(javassist.CtClass ctClass,
                                            AnnotationHelper annotationHelper)
Method Detail

getAnnotations

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

Returns:
the annotations

getAnnotations

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

getAnnotation

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

Specified by:
getAnnotation in interface AnnotatedInfo
Overrides:
getAnnotation in class JavassistAnnotatedInfo
Parameters:
name - the name
Returns:
the annotation

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 JavassistAnnotatedInfo
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 JavassistAnnotatedInfo
Parameters:
annotations - the annotations

getAllAnnotations

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

Returns:
the map

getSuperHolder

public abstract JavassistInheritableAnnotationHolder getSuperHolder()


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