protected <A extends Annotation> void redefineAnnotationBuilder(Class<A> annotationType, AnnotationRedefiner<A> redefinition, AnnotatedElement annotated, Type baseType, AnnotationBuilder builder, String elementName) { if (builder.isAnnotationPresent(annotationType)) { redefinition.redefine(new RedefinitionContext<A>(annotated, baseType, builder, elementName)); } }
if (overwrite || !typeAnnotations.isAnnotationPresent(annotation.annotationType())) for (Annotation annotation : field.getAnnotations()) if (overwrite || !annotationBuilder.isAnnotationPresent(annotation.annotationType())) for (Annotation annotation : method.getAnnotations()) if (overwrite || !annotationBuilder.isAnnotationPresent(annotation.annotationType())) if (overwrite || !parameterAnnotationBuilder.isAnnotationPresent(annotation.annotationType())) for (Annotation annotation : constructor.getAnnotations()) if (overwrite || !annotationBuilder.isAnnotationPresent(annotation.annotationType())) if (overwrite || !parameterAnnotationBuilder.isAnnotationPresent(annotation.annotationType()))