public class AnnotationConverter
extends java.lang.Object
Annotation
and AnnotationMirror
.Constructor and Description |
---|
AnnotationConverter() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addFieldToAnnotationBuilder(java.lang.String fieldKey,
java.lang.Object obj,
AnnotationBuilder builder)
Adds a field to an AnnotationBuilder.
|
protected static annotations.Annotation |
annotationMirrorToAnnotation(javax.lang.model.element.AnnotationMirror am)
Converts an
AnnotationMirror into an Annotation . |
protected static javax.lang.model.element.AnnotationMirror |
annotationToAnnotationMirror(annotations.Annotation anno,
javax.annotation.processing.ProcessingEnvironment processingEnv)
Converts an
Annotation into an AnnotationMirror . |
protected static annotations.field.AnnotationFieldType |
getAnnotationFieldType(javax.lang.model.element.ExecutableElement ee,
java.lang.Object value)
Returns an AnnotationFieldType given an ExecutableElement or value.
|
protected static annotations.Annotation annotationMirrorToAnnotation(javax.lang.model.element.AnnotationMirror am)
AnnotationMirror
into an Annotation
.protected static javax.lang.model.element.AnnotationMirror annotationToAnnotationMirror(annotations.Annotation anno, javax.annotation.processing.ProcessingEnvironment processingEnv)
Annotation
into an AnnotationMirror
.protected static annotations.field.AnnotationFieldType getAnnotationFieldType(javax.lang.model.element.ExecutableElement ee, java.lang.Object value)
protected static void addFieldToAnnotationBuilder(java.lang.String fieldKey, java.lang.Object obj, AnnotationBuilder builder)
fieldKey
- is the name of the fieldobj
- is the value of the fieldbuilder
- is the AnnotationBuilder