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

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

public final class DefaultAnnotationMetadata
extends Object
implements AnnotationMetadata

Default implementation of AnnotationMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
DefaultAnnotationMetadata(org.springframework.roo.model.JavaType annotationType, List<AnnotationAttributeValue<?>> attributes)
           
 
Method Summary
 org.springframework.roo.model.JavaType getAnnotationType()
           
 AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
          Acquires an attribute value for the requested name.
 List<org.springframework.roo.model.JavaSymbolName> getAttributeNames()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultAnnotationMetadata

public DefaultAnnotationMetadata(org.springframework.roo.model.JavaType annotationType,
                                 List<AnnotationAttributeValue<?>> attributes)
Method Detail

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)

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)

getAnnotationType

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.