org.jboss.reflect.plugins.javassist
Class JavassistAnnotatedInfo

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

public abstract class JavassistAnnotatedInfo
extends AbstractAnnotatedInfo

JavassistAnnotatedInfo.

Version:
$Revision: 60147 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
protected  AnnotationHelper annotationHelper
           
protected  HashMap<String,AnnotationValue> annotationMap
          Annotations map Map
protected  AnnotationValue[] annotationsArray
          The annotations
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
JavassistAnnotatedInfo(AnnotationHelper annotationHelper)
           
 
Method Summary
 AnnotationValue getAnnotation(String name)
          Get an annotation
protected  AnnotationValue[] getAnnotations(Object obj)
           
 boolean isAnnotationPresent(String name)
          Test whether an annotation is present
protected  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.reflect.spi.AnnotatedInfo
getAnnotations
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Field Detail

annotationsArray

protected AnnotationValue[] annotationsArray
The annotations


annotationMap

protected HashMap<String,AnnotationValue> annotationMap
Annotations map Map


annotationHelper

protected AnnotationHelper annotationHelper
Constructor Detail

JavassistAnnotatedInfo

public JavassistAnnotatedInfo(AnnotationHelper annotationHelper)
Method Detail

getAnnotations

protected AnnotationValue[] getAnnotations(Object obj)

getAnnotation

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

Parameters:
name - the name
Returns:
the annotation

isAnnotationPresent

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

Parameters:
name - the name
Returns:
true when the annotation is present

setupAnnotations

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

Parameters:
annotations - the annotations


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