/**
* Let's accumulate all the processing tasks.
*/
for (final ProcessingEntry entry : processingEntries) {
Class<? extends Annotation> aClass = entry.annotationClass;
Target target = aClass.getAnnotation(Target.class);
if (target == null) {
target = new Target() {
@Override
public ElementType[] value() {
return new ElementType[]
{ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD,
ElementType.METHOD, ElementType.FIELD};
}
@Override
public Class<? extends Annotation> annotationType() {
return Target.class;
}
};
}
for (ElementType elementType : target.value()) {
switch (elementType) {
case TYPE: {
Set<Class<?>> classes = scanner.getTypesAnnotatedWith(aClass, context.getPackages());
for (final Class<?> clazz : classes) {
final Annotation aInstance = clazz.getAnnotation(aClass);