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, MutableClassInfo, MutableConstructorInfo, MutableFieldInfo, MutableMethodInfo, PackageInfo, ParameterInfo, PropertyInfo
- All Known Implementing Classes:
- AbstractAnnotatedInfo, AbstractPropertyInfo, AnnotationHolder, AnnotationInfoImpl, ArrayInfoImpl, BytecodeAnnotatedInfo, BytecodeAnnotationInfo, BytecodeArrayInfoImpl, BytecodeBehaviourInfo, BytecodeConstructorInfo, BytecodeEnumInfo, BytecodeFieldInfo, BytecodeInheritableAnnotationHolder, BytecodeMethodInfo, BytecodeParameterInfo, BytecodeParameterizedClassInfo, BytecodeTypeInfo, ClassInfoImpl, ConstructorInfoImpl, DefaultPropertyInfo, DelegateClassInfo, EnumConstantInfoImpl, EnumInfoImpl, FieldInfoImpl, FieldPropertyInfo, GetterAndFieldPropertyInfo, InheritableAnnotationHolder, InterfaceInfoImpl, JavassistAnnotatedInfo, JavassistAnnotatedParameterInfo, JavassistAnnotationInfo, JavassistArrayInfoImpl, JavassistConstructorInfo, JavassistEnumInfo, JavassistFieldInfo, JavassistInheritableAnnotationHolder, JavassistMethodInfo, JavassistParameterInfo, JavassistParameterizedClassInfo, 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
Methods inherited from interface org.jboss.util.JBossInterface |
clone, toShortString, toShortString |
getAnnotations
AnnotationValue[] getAnnotations()
- Get the annotations
- Returns:
- the annotations. If there are no annotations a zero length array is returned
getAnnotation
AnnotationValue getAnnotation(String name)
- Get an annotation
- Parameters:
name
- the name
- Returns:
- the annotation or null if it is not there
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. If there are no annotations a zero length array is returned
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 or null if it is not there
isAnnotationPresent
boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Test whether an annotation is present
- Parameters:
annotationType
-
- Returns:
- true when the annotation is present
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.