org.springframework.roo.classpath.details.annotations
Class DefaultAnnotationMetadata
java.lang.Object
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
DefaultAnnotationMetadata
public DefaultAnnotationMetadata(org.springframework.roo.model.JavaType annotationType,
List<AnnotationAttributeValue<?>> attributes)
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.