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