org.springframework.roo.classpath.javaparser.details
Class JavaParserAnnotationMetadata
java.lang.Object
org.springframework.roo.classpath.javaparser.details.JavaParserAnnotationMetadata
- All Implemented Interfaces:
- org.springframework.roo.classpath.details.annotations.AnnotationMetadata
public final class JavaParserAnnotationMetadata
- extends Object
- implements org.springframework.roo.classpath.details.annotations.AnnotationMetadata
Java Parser implementation of AnnotationMetadata
.
- Since:
- 1.0
- Author:
- Ben Alex
Method Summary |
static void |
addAnnotationToList(CompilationUnitServices compilationUnitServices,
List<japa.parser.ast.expr.AnnotationExpr> annotations,
org.springframework.roo.classpath.details.annotations.AnnotationMetadata annotation,
boolean permitFlush)
Facilitates the addition of the annotation to the presented type. |
org.springframework.roo.model.JavaType |
getAnnotationType()
|
org.springframework.roo.classpath.details.annotations.AnnotationAttributeValue<?> |
getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
|
List<org.springframework.roo.model.JavaSymbolName> |
getAttributeNames()
|
static void |
removeAnnotationFromList(CompilationUnitServices compilationUnitServices,
List<japa.parser.ast.expr.AnnotationExpr> annotations,
org.springframework.roo.model.JavaType annotation,
boolean permitFlush)
Facilitates the removal of the annotation type indicated. |
String |
toString()
|
JavaParserAnnotationMetadata
public JavaParserAnnotationMetadata(japa.parser.ast.expr.AnnotationExpr annotationExpr,
CompilationUnitServices compilationUnitServices)
getAnnotationType
public org.springframework.roo.model.JavaType getAnnotationType()
- Specified by:
getAnnotationType
in interface org.springframework.roo.classpath.details.annotations.AnnotationMetadata
getAttribute
public org.springframework.roo.classpath.details.annotations.AnnotationAttributeValue<?> getAttribute(org.springframework.roo.model.JavaSymbolName attributeName)
- Specified by:
getAttribute
in interface org.springframework.roo.classpath.details.annotations.AnnotationMetadata
getAttributeNames
public List<org.springframework.roo.model.JavaSymbolName> getAttributeNames()
- Specified by:
getAttributeNames
in interface org.springframework.roo.classpath.details.annotations.AnnotationMetadata
addAnnotationToList
public static void addAnnotationToList(CompilationUnitServices compilationUnitServices,
List<japa.parser.ast.expr.AnnotationExpr> annotations,
org.springframework.roo.classpath.details.annotations.AnnotationMetadata annotation,
boolean permitFlush)
- Facilitates the addition of the annotation to the presented type.
- Parameters:
compilationUnitServices
- to use for flushing (required)annotations
- to add to the end of (required)annotation
- to add (required)
removeAnnotationFromList
public static void removeAnnotationFromList(CompilationUnitServices compilationUnitServices,
List<japa.parser.ast.expr.AnnotationExpr> annotations,
org.springframework.roo.model.JavaType annotation,
boolean permitFlush)
- Facilitates the removal of the annotation type indicated.
- Parameters:
compilationUnitServices
- to use for flushing (required)annotations
- to remove the annotation from (required)annotation
- to remove (required)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.