use of org.androidannotations.internal.helper.AnnotationParamExtractor in project androidannotations by androidannotations.
the class APTCodeModelHelper method copyAnnotation.
public void copyAnnotation(IJAnnotatable annotatable, AnnotationMirror annotationMirror) {
Map<? extends ExecutableElement, ? extends AnnotationValue> parameters = annotationMirror.getElementValues();
if (!hasAnnotation(annotatable, annotationMirror)) {
AbstractJClass annotation = typeMirrorToJClass(annotationMirror.getAnnotationType());
JAnnotationUse annotate = annotatable.annotate(annotation);
for (Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> param : parameters.entrySet()) {
param.getValue().accept(new AnnotationParamExtractor(annotate, this), param.getKey().getSimpleName().toString());
}
}
}
Aggregations