org.jboss.reflect.spi
Interface AnnotationValue

All Superinterfaces:
Value
All Known Implementing Classes:
AnnotationValueImpl

public interface AnnotationValue
extends Value

An annotation value

Author:
Bill Burke, Adrian Brock

Method Summary
 AnnotationInfo getAnnotationType()
          Get the annotation type
 Annotation getUnderlyingAnnotation()
          Get the underlying annotation
<T extends Annotation>
T
getUnderlyingAnnotation(Class<T> annotationType)
          Get the underlying annotation
 Value getValue(String attributeName)
          Get an attribute value
 Map<String,Value> getValues()
          Get the values
 
Methods inherited from interface org.jboss.reflect.spi.Value
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, getType, isAnnotation, isArray, isClass, isEnum, isPrimitive, isString
 

Method Detail

getAnnotationType

AnnotationInfo getAnnotationType()
Get the annotation type

Returns:
the annotation type

getValue

Value getValue(String attributeName)
Get an attribute value

Parameters:
attributeName - the attribute name
Returns:
the value

getValues

Map<String,Value> getValues()
Get the values

Returns:
the values

getUnderlyingAnnotation

Annotation getUnderlyingAnnotation()
Get the underlying annotation

Returns:
the annotation

getUnderlyingAnnotation

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

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


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