org.jboss.reflect.spi
Interface AnnotatedInfo

All Superinterfaces:
Cloneable, org.jboss.util.JBossInterface
All Known Subinterfaces:
AnnotationInfo, ArrayInfo, ClassInfo, ConstructorInfo, EnumConstantInfo, EnumInfo, FieldInfo, InterfaceInfo, MethodInfo, PackageInfo, ParameterInfo, PropertyInfo
All Known Implementing Classes:
AbstractAnnotatedInfo, AbstractPropertyInfo, AnnotationHolder, AnnotationInfoImpl, ArrayInfoImpl, ClassInfoImpl, ConstructorInfoImpl, DefaultPropertyInfo, DelegateClassInfo, EnumConstantInfoImpl, EnumInfoImpl, FieldInfoImpl, FieldPropertyInfo, GetterAndFieldPropertyInfo, InheritableAnnotationHolder, InterfaceInfoImpl, JavassistAnnotatedInfo, JavassistAnnotatedParameterInfo, JavassistAnnotationInfo, JavassistArrayInfoImpl, JavassistConstructorInfo, JavassistEnumInfo, JavassistFieldInfo, JavassistInheritableAnnotationHolder, JavassistMethodInfo, JavassistParameterInfo, JavassistTypeInfo, MethodInfoImpl, NestedPropertyInfo, NumberInfo, PackageInfoImpl, ParameterInfoImpl, ParameterizedArrayInfo, ParameterizedClassInfo, ReflectClassInfoImpl, ReflectConstructorInfoImpl, ReflectFieldInfoImpl, ReflectMethodInfoImpl, SetterAndFieldPropertyInfo

public interface AnnotatedInfo
extends org.jboss.util.JBossInterface

Annotated info

Author:
Bill Burke, Adrian Brock

Method Summary
 AnnotationValue getAnnotation(String name)
          Get an annotation
 AnnotationValue[] getAnnotations()
          Get the annotations
<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
 boolean isAnnotationPresent(String name)
          Test whether an annotation is present
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Method Detail

getAnnotations

AnnotationValue[] getAnnotations()
Get the annotations

Returns:
the annotations

getAnnotation

AnnotationValue getAnnotation(String name)
Get an annotation

Parameters:
name - the name
Returns:
the annotation

isAnnotationPresent

boolean isAnnotationPresent(String name)
Test whether an annotation is present

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

getUnderlyingAnnotations

Annotation[] getUnderlyingAnnotations()
Get the underlying annotations

Returns:
the annotations

getUnderlyingAnnotation

<T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
Get an underlying annotation

Type Parameters:
T - the annotation type
Parameters:
annotationType - the annotationType
Returns:
the annotation

isAnnotationPresent

boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present

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


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