Example usage for Java org.springframework.core.annotation AnnotatedElementUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Set | findAllMergedAnnotations(AnnotatedElement element, Class annotationType) Find all annotations of the specified annotationType within the annotation hierarchy above the supplied element ; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specified annotationType . |
Set | findAllMergedAnnotations(AnnotatedElement element, Set Find all annotations of the specified annotationTypes within the annotation hierarchy above the supplied element ; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the corresponding annotationType . |
A | findMergedAnnotation(AnnotatedElement element, Class annotationType) Find the first annotation of the specified annotationType within the annotation hierarchy above the supplied element , merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specified annotationType . |
AnnotationAttributes | findMergedAnnotationAttributes(AnnotatedElement element, Class extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specified annotationType within the annotation hierarchy above the supplied element and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy. |
AnnotationAttributes | findMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specified annotationName within the annotation hierarchy above the supplied element and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy. |
A | getMergedAnnotation(AnnotatedElement element, Class annotationType) Get the first annotation of the specified annotationType within the annotation hierarchy above the supplied element , merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specified annotationType . |
AnnotationAttributes | getMergedAnnotationAttributes(AnnotatedElement element, Class extends Annotation> annotationType) Get the first annotation of the specified annotationType within the annotation hierarchy above the supplied element and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy. |
AnnotationAttributes | getMergedAnnotationAttributes(AnnotatedElement element, String annotationName) Get the first annotation of the specified annotationName within the annotation hierarchy above the supplied element and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy. |
Set | getMergedRepeatableAnnotations(AnnotatedElement element, Class annotationType, @Nullable Class extends Annotation> containerType) Get all repeatable annotations of the specified annotationType within the annotation hierarchy above the supplied element ; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specified annotationType . |
boolean | hasAnnotation(AnnotatedElement element, Class extends Annotation> annotationType) Determine if an annotation of the specified annotationType is available on the supplied AnnotatedElement or within the annotation hierarchy above the specified element. |
boolean | isAnnotated(AnnotatedElement element, Class extends Annotation> annotationType) Determine if an annotation of the specified annotationType is present on the supplied AnnotatedElement or within the annotation hierarchy above the specified element. |
boolean | isAnnotated(AnnotatedElement element, String annotationName) Determine if an annotation of the specified annotationName is present on the supplied AnnotatedElement or within the annotation hierarchy above the specified element. |