1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -207,11 +207,11 @@ public Object process(AnnotatedElement annotatedElement, Annotation annotation,
207
207
/**
208
208
* Determine if the supplied {@link AnnotatedElement} is annotated with
209
209
* a <em>composed annotation</em> that is meta-annotated with an
210
- * annotation of the specified {@code annotationName }.
210
+ * annotation of the specified {@code annotationType }.
211
211
* <p>This method follows <em>get semantics</em> as described in the
212
212
* {@linkplain AnnotatedElementUtils class-level javadoc}.
213
213
* @param element the annotated element
214
- * @param annotationType the annotation type on which to find meta-annotations
214
+ * @param annotationType the meta- annotation type to find
215
215
* @return {@code true} if a matching meta-annotation is present
216
216
* @since 4.2.3
217
217
* @see #getMetaAnnotationTypes
@@ -255,15 +255,15 @@ public Boolean process(AnnotatedElement annotatedElement, Annotation annotation,
255
255
}
256
256
257
257
/**
258
- * Determine if an annotation of the specified {@code annotationName }
258
+ * Determine if an annotation of the specified {@code annotationType }
259
259
* is <em>present</em> on the supplied {@link AnnotatedElement} or
260
260
* within the annotation hierarchy <em>above</em> the specified element.
261
261
* <p>If this method returns {@code true}, then {@link #getMergedAnnotationAttributes}
262
262
* will return a non-null value.
263
263
* <p>This method follows <em>get semantics</em> as described in the
264
264
* {@linkplain AnnotatedElementUtils class-level javadoc}.
265
265
* @param element the annotated element
266
- * @param annotationType the annotation type on which to find meta-annotations
266
+ * @param annotationType the annotation type to find
267
267
* @return {@code true} if a matching annotation is present
268
268
* @since 4.2.3
269
269
*/
@@ -461,7 +461,7 @@ public static <A extends Annotation> A findMergedAnnotation(AnnotatedElement ele
461
461
}
462
462
463
463
/**
464
- * Find the first annotation of the specified {@code annotationName } within
464
+ * Find the first annotation of the specified {@code annotationType } within
465
465
* the annotation hierarchy <em>above</em> the supplied {@code element} and
466
466
* merge that annotation's attributes with <em>matching</em> attributes from
467
467
* annotations in lower levels of the annotation hierarchy.
@@ -472,8 +472,8 @@ public static <A extends Annotation> A findMergedAnnotation(AnnotatedElement ele
472
472
* <p>In contrast to {@link #getAllAnnotationAttributes}, the search
473
473
* algorithm used by this method will stop searching the annotation
474
474
* hierarchy once the first annotation of the specified
475
- * {@code annotationName } has been found. As a consequence, additional
476
- * annotations of the specified {@code annotationName } will be ignored.
475
+ * {@code annotationType } has been found. As a consequence, additional
476
+ * annotations of the specified {@code annotationType } will be ignored.
477
477
* <p>This method follows <em>find semantics</em> as described in the
478
478
* {@linkplain AnnotatedElementUtils class-level javadoc}.
479
479
* @param element the annotated element
@@ -613,10 +613,11 @@ public Void process(AnnotatedElement annotatedElement, Annotation annotation, in
613
613
}
614
614
615
615
/**
616
- * Search for annotations of the specified {@code annotationName} on
617
- * the specified {@code element}, following <em>get semantics</em>.
616
+ * Search for annotations of the specified {@code annotationName} or
617
+ * {@code annotationType} on the specified {@code element}, following
618
+ * <em>get semantics</em>.
618
619
* @param element the annotated element
619
- * @param annotationType the annotation type on which to find meta-annotations
620
+ * @param annotationType the annotation type to find
620
621
* @param annotationName the fully qualified class name of the annotation
621
622
* type to find (as an alternative to {@code annotationType})
622
623
* @param processor the processor to delegate to
@@ -642,7 +643,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
642
643
* <p>The {@code metaDepth} parameter is explained in the
643
644
* {@link Processor#process process()} method of the {@link Processor} API.
644
645
* @param element the annotated element
645
- * @param annotationType the annotation type on which to find meta-annotations
646
+ * @param annotationType the annotation type to find
646
647
* @param annotationName the fully qualified class name of the annotation
647
648
* type to find (as an alternative to {@code annotationType})
648
649
* @param processor the processor to delegate to
@@ -702,7 +703,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
702
703
* @param annotatedElement the element that is annotated with the supplied
703
704
* annotations, used for contextual logging; may be {@code null} if unknown
704
705
* @param annotations the annotations to search in
705
- * @param annotationType the annotation type on which to find meta-annotations
706
+ * @param annotationType the annotation type to find
706
707
* @param annotationName the fully qualified class name of the annotation
707
708
* type to find (as an alternative to {@code annotationType})
708
709
* @param processor the processor to delegate to
@@ -744,10 +745,11 @@ private static <T> T searchWithGetSemanticsInAnnotations(AnnotatedElement annota
744
745
}
745
746
746
747
/**
747
- * Search for annotations of the specified {@code annotationName} on
748
- * the specified {@code element}, following <em>find semantics</em>.
748
+ * Search for annotations of the specified {@code annotationName} or
749
+ * {@code annotationType} on the specified {@code element}, following
750
+ * <em>find semantics</em>.
749
751
* @param element the annotated element
750
- * @param annotationType the annotation type on which to find meta-annotations
752
+ * @param annotationType the annotation type to find
751
753
* @param annotationName the fully qualified class name of the annotation
752
754
* type to find (as an alternative to {@code annotationType})
753
755
* @param processor the processor to delegate to
@@ -774,7 +776,7 @@ private static <T> T searchWithFindSemantics(
774
776
* <p>The {@code metaDepth} parameter is explained in the
775
777
* {@link Processor#process process()} method of the {@link Processor} API.
776
778
* @param element the annotated element
777
- * @param annotationType the annotation type on which to find meta-annotations
779
+ * @param annotationType the annotation type to find
778
780
* @param annotationName the fully qualified class name of the annotation
779
781
* type to find (as an alternative to {@code annotationType})
780
782
* @param processor the processor to delegate to
@@ -1004,7 +1006,7 @@ public final void postProcess(AnnotatedElement annotatedElement, Annotation anno
1004
1006
* annotation attributes from lower levels in the annotation hierarchy
1005
1007
* during the {@link #postProcess} phase.
1006
1008
* @since 4.2
1007
- * @see AnnotationUtils#retrieveAnnotationAttributes(AnnotatedElement, Annotation, boolean, boolean)
1009
+ * @see AnnotationUtils#retrieveAnnotationAttributes
1008
1010
* @see AnnotationUtils#postProcessAnnotationAttributes
1009
1011
*/
1010
1012
private static class MergedAnnotationAttributesProcessor implements Processor <AnnotationAttributes > {
0 commit comments