40
40
public interface AnnotationMetadata extends ClassMetadata , AnnotatedTypeMetadata {
41
41
42
42
/**
43
- * Get the fully qualified class names of all annotation types that
44
- * are <em>present</em> on the underlying class.
43
+ * Get the fully- qualified class names of all annotation types that are
44
+ * <em>directly present</em> on the underlying class.
45
45
* @return the annotation type names
46
46
*/
47
47
default Set <String > getAnnotationTypes () {
@@ -52,9 +52,9 @@ default Set<String> getAnnotationTypes() {
52
52
}
53
53
54
54
/**
55
- * Get the fully qualified class names of all meta-annotation types that
56
- * are <em>present</em> on the given annotation type on the underlying class.
57
- * @param annotationName the fully qualified class name of the annotation
55
+ * Get the fully- qualified class names of all meta-annotation types that are
56
+ * <em>present</em> on the given annotation type on the underlying class.
57
+ * @param annotationName the fully- qualified class name of the annotation
58
58
* type to look for meta-annotations on
59
59
* @return the meta-annotation type names, or an empty set if none found
60
60
*/
@@ -69,11 +69,11 @@ default Set<String> getMetaAnnotationTypes(String annotationName) {
69
69
}
70
70
71
71
/**
72
- * Determine whether an annotation of the given type is <em>present</em> on
73
- * the underlying class.
74
- * @param annotationName the fully qualified class name of the annotation
72
+ * Determine whether an annotation of the given type is <em>directly present</em>
73
+ * on the underlying class.
74
+ * @param annotationName the fully- qualified class name of the annotation
75
75
* type to look for
76
- * @return {@code true} if a matching annotation is present
76
+ * @return {@code true} if a matching annotation is directly present
77
77
*/
78
78
default boolean hasAnnotation (String annotationName ) {
79
79
return getAnnotations ().isDirectlyPresent (annotationName );
@@ -82,7 +82,7 @@ default boolean hasAnnotation(String annotationName) {
82
82
/**
83
83
* Determine whether the underlying class has an annotation that is itself
84
84
* annotated with the meta-annotation of the given type.
85
- * @param metaAnnotationName the fully qualified class name of the
85
+ * @param metaAnnotationName the fully- qualified class name of the
86
86
* meta-annotation type to look for
87
87
* @return {@code true} if a matching meta-annotation is present
88
88
*/
@@ -94,7 +94,7 @@ default boolean hasMetaAnnotation(String metaAnnotationName) {
94
94
/**
95
95
* Determine whether the underlying class has any methods that are
96
96
* annotated (or meta-annotated) with the given annotation type.
97
- * @param annotationName the fully qualified class name of the annotation
97
+ * @param annotationName the fully- qualified class name of the annotation
98
98
* type to look for
99
99
*/
100
100
default boolean hasAnnotatedMethods (String annotationName ) {
@@ -106,7 +106,7 @@ default boolean hasAnnotatedMethods(String annotationName) {
106
106
* (or meta-annotated) with the given annotation type.
107
107
* <p>For any returned method, {@link MethodMetadata#isAnnotated} will
108
108
* return {@code true} for the given annotation type.
109
- * @param annotationName the fully qualified class name of the annotation
109
+ * @param annotationName the fully- qualified class name of the annotation
110
110
* type to look for
111
111
* @return a set of {@link MethodMetadata} for methods that have a matching
112
112
* annotation. The return value will be an empty set if no methods match
0 commit comments