org.jboss.reflect.plugins
Class AbstractAnnotatedInfo

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

public abstract class AbstractAnnotatedInfo
extends org.jboss.util.JBossObject
implements AnnotatedInfo, Serializable

Abstract annotated info

Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractAnnotatedInfo()
          Create a new annotated info
 
Method Summary
<T extends Annotation>
T
getUnderlyingAnnotation(Class<T> annotationType)
          Get an underlying annotation
 Annotation[] getUnderlyingAnnotations()
          Get the underlying annotations
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
          Test whether an annotation is present
 
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
getAnnotation, getAnnotations, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Constructor Detail

AbstractAnnotatedInfo

public AbstractAnnotatedInfo()
Create a new annotated info

Method Detail

getUnderlyingAnnotation

public <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
Description copied from interface: AnnotatedInfo
Get an underlying annotation

Specified by:
getUnderlyingAnnotation in interface AnnotatedInfo
Type Parameters:
T - the annotation type
Parameters:
annotationType - the annotationType
Returns:
the annotation

getUnderlyingAnnotations

public Annotation[] getUnderlyingAnnotations()
Description copied from interface: AnnotatedInfo
Get the underlying annotations

Specified by:
getUnderlyingAnnotations in interface AnnotatedInfo
Returns:
the annotations

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Description copied from interface: AnnotatedInfo
Test whether an annotation is present

Specified by:
isAnnotationPresent in interface AnnotatedInfo
Returns:
true when the annotation is present


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