org.springframework.roo.classpath.details.annotations
Interface AnnotationMetadata

All Superinterfaces:
CommentedJavaStructure
All Known Implementing Classes:
DefaultAnnotationMetadata

public interface AnnotationMetadata
extends CommentedJavaStructure

Metadata concerning a particular annotation appearing on a member.

Since:
1.0
Author:
Ben Alex, Andrew Swan

Method Summary
 org.springframework.roo.model.JavaType getAnnotationType()
           
 AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
          Acquires an attribute value for the requested name.
<T> AnnotationAttributeValue<T>
getAttribute(String attributeName)
          Returns the value of the given attribute
 List<org.springframework.roo.model.JavaSymbolName> getAttributeNames()
           
 
Methods inherited from interface org.springframework.roo.classpath.details.comments.CommentedJavaStructure
getCommentStructure, setCommentStructure
 

Method Detail

getAnnotationType

org.springframework.roo.model.JavaType getAnnotationType()
Returns:
the annotation type (never null)

getAttribute

AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
Acquires an attribute value for the requested name.

Parameters:
attributeName -
Returns:
the requested attribute (or null if not found)

getAttribute

<T> AnnotationAttributeValue<T> getAttribute(String attributeName)
Returns the value of the given attribute

Parameters:
attributeName -
Returns:
the requested attribute (or null if not found)
Since:
1.2.0

getAttributeNames

List<org.springframework.roo.model.JavaSymbolName> getAttributeNames()
Returns:
the attribute names, preferably in the order they are declared in the annotation (never null, but may be empty)


Copyright © 2009–2015. All rights reserved.