org.springframework.roo.classpath.details.annotations
Class DefaultAnnotationMetadata

java.lang.Object
  extended by org.springframework.roo.classpath.details.annotations.DefaultAnnotationMetadata
All Implemented Interfaces:
AnnotationMetadata, CommentedJavaStructure

public class DefaultAnnotationMetadata
extends Object
implements AnnotationMetadata

Default implementation of AnnotationMetadata.

Since:
1.0
Author:
Ben Alex

Method Summary
 org.springframework.roo.model.JavaType getAnnotationType()
           
 AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
          Acquires an attribute value for the requested name.
 AnnotationAttributeValue<?> getAttribute(String attributeName)
          Returns the value of the given attribute
 List<org.springframework.roo.model.JavaSymbolName> getAttributeNames()
           
 CommentStructure getCommentStructure()
           
 void setCommentStructure(CommentStructure commentStructure)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAnnotationType

public org.springframework.roo.model.JavaType getAnnotationType()
Specified by:
getAnnotationType in interface AnnotationMetadata
Returns:
the annotation type (never null)

getAttribute

public AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
Description copied from interface: AnnotationMetadata
Acquires an attribute value for the requested name.

Specified by:
getAttribute in interface AnnotationMetadata
Returns:
the requested attribute (or null if not found)

getAttribute

public AnnotationAttributeValue<?> getAttribute(String attributeName)
Description copied from interface: AnnotationMetadata
Returns the value of the given attribute

Specified by:
getAttribute in interface AnnotationMetadata
Returns:
the requested attribute (or null if not found)

getAttributeNames

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

getCommentStructure

public CommentStructure getCommentStructure()
Specified by:
getCommentStructure in interface CommentedJavaStructure

setCommentStructure

public void setCommentStructure(CommentStructure commentStructure)
Specified by:
setCommentStructure in interface CommentedJavaStructure

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015. All rights reserved.