Class AnnotationMirrorToAnnotationExprConversion
- java.lang.Object
-
- org.checkerframework.framework.ajava.AnnotationMirrorToAnnotationExprConversion
-
public class AnnotationMirrorToAnnotationExprConversion extends java.lang.Object
Methods for converting aAnnotationMirror
into a JavaParserAnnotationExpr
, namelyannotationMirrorToAnnotationExpr
.
-
-
Constructor Summary
Constructors Constructor Description AnnotationMirrorToAnnotationExprConversion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.AnnotationExpr>
annotationMirrorSetToAnnotationExprList(AnnotationMirrorSet annotationMirrors)
Converts a Set of AnnotationMirror into List of JavaParserAnnotationExpr
.static com.github.javaparser.ast.expr.AnnotationExpr
annotationMirrorToAnnotationExpr(javax.lang.model.element.AnnotationMirror annotation)
Converts an AnnotationMirror into a JavaParserAnnotationExpr
.
-
-
-
Method Detail
-
annotationMirrorToAnnotationExpr
public static com.github.javaparser.ast.expr.AnnotationExpr annotationMirrorToAnnotationExpr(javax.lang.model.element.AnnotationMirror annotation)
Converts an AnnotationMirror into a JavaParserAnnotationExpr
.- Parameters:
annotation
- the annotation to convert- Returns:
- a JavaParser
AnnotationExpr
representing the same annotation with the same element values. The converted annotation will contain the annotation's fully qualified name.
-
annotationMirrorSetToAnnotationExprList
public static com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.AnnotationExpr> annotationMirrorSetToAnnotationExprList(AnnotationMirrorSet annotationMirrors)
Converts a Set of AnnotationMirror into List of JavaParserAnnotationExpr
.- Parameters:
annotationMirrors
- the annotations to convert- Returns:
- a list of JavaParser
AnnotationExpr
s representing the same annotations - See Also:
annotationMirrorToAnnotationExpr(javax.lang.model.element.AnnotationMirror)
-
-