in src/main/java/com/amazonaws/eclipse/simpleworkflow/asynchrony/annotationprocessor/ProcessorUtils.java [347:365]
private static AnnotationValue getAnnotationValueForClassAttribute(ProcessingEnvironment env, TypeElement typeElement,
DeclaredType annotationType, String attribute) {
AnnotationValue elementValue = null;
for (AnnotationMirror mirror : typeElement.getAnnotationMirrors()) {
if (env.getTypeUtils().isSameType(mirror.getAnnotationType(), annotationType)) {
Map<? extends ExecutableElement, ? extends AnnotationValue> elementValues = mirror.getElementValues();
for (Entry<? extends ExecutableElement, ? extends AnnotationValue> entry : elementValues.entrySet()) {
ExecutableElement elementKey = entry.getKey();
if (attribute.equals(elementKey.getSimpleName().toString())) {
elementValue = entry.getValue();
break;
}
}
}
}
return elementValue;
}