in src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java [409:425]
private Map<String, Object> getValues(javax.lang.model.element.Element element, TypeElement type) {
Map<String, Object> values = new TreeMap<>();
Collection<? extends AnnotationMirror> annotations = element
.getAnnotationMirrors();
// iterate over the mirrors.
for (AnnotationMirror mirror : annotations) {
// if the mirror in this iteration is for our note declaration...
if (mirror.getAnnotationType().asElement().equals(type)) {
for (Entry<? extends ExecutableElement, ? extends AnnotationValue> elementEntry : processingEnv.getElementUtils().getElementValuesWithDefaults(mirror).entrySet()) {
values.put(elementEntry.getKey().getSimpleName().toString(), elementEntry.getValue().getValue());
}
}
}
return values;
}