Java org.springframework.core.annotation AnnotationUtils fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.annotation AnnotationUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.annotation AnnotationUtils.

The text is from its open source code.

Field

StringVALUE
The attribute name for annotations with a single element.

Method

AfindAnnotation(AnnotatedElement annotatedElement, @Nullable Class annotationType)
Find a single Annotation of annotationType on the supplied AnnotatedElement .
AfindAnnotation(Method method, @Nullable Class annotationType)
Find a single Annotation of annotationType on the supplied Method , traversing its super methods (i.e.
AfindAnnotation(Class clazz, @Nullable Class annotationType)
Find a single Annotation of annotationType on the supplied Class , traversing its interfaces, annotations, and superclasses if the annotation is not directly present on the given class itself.
ClassfindAnnotationDeclaringClass(Class annotationType, @Nullable Class clazz)
Find the first Class in the inheritance hierarchy of the specified clazz (including the specified clazz itself) on which an annotation of the specified annotationType is directly present.
AgetAnnotation(Annotation annotation, Class annotationType)
Get a single Annotation of annotationType from the supplied annotation: either the given annotation itself or a direct meta-annotation thereof.
AgetAnnotation(AnnotatedElement annotatedElement, Class annotationType)
Get a single Annotation of annotationType from the supplied AnnotatedElement , where the annotation is either present or meta-present on the AnnotatedElement .
AgetAnnotation(Method method, Class annotationType)
Get a single Annotation of annotationType from the supplied Method , where the annotation is either present or meta-present on the method.
MapgetAnnotationAttributes(Annotation annotation, boolean classValuesAsString)
Retrieve the given annotation's attributes as a Map .
AnnotationAttributesgetAnnotationAttributes(@Nullable AnnotatedElement annotatedElement, Annotation annotation)
Retrieve the given annotation's attributes as an AnnotationAttributes map.
MapgetAnnotationAttributes(Annotation annotation)
Retrieve the given annotation's attributes as a Map , preserving all attribute types.
AnnotationAttributesgetAnnotationAttributes(Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as an AnnotationAttributes map.
Annotation[]getAnnotations(AnnotatedElement annotatedElement)
Get all Annotation Annotations that are present on the supplied AnnotatedElement .
Annotation[]getAnnotations(Method method)
Get all Annotation Annotations that are present on the supplied Method .
SetgetDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement, Class annotationType)
Get the declared repeatable Annotation annotations of annotationType from the supplied AnnotatedElement , where such annotations are either directly present, indirectly present, or meta-present on the element.
ObjectgetDefaultValue(@Nullable Annotation annotation, @Nullable String attributeName)
Retrieve the default value of a named attribute, given an annotation instance.
ObjectgetDefaultValue(@Nullable Class annotationType, @Nullable String attributeName)
Retrieve the default value of a named attribute, given the Class annotation type .
ObjectgetDefaultValue(Annotation annotation)
Retrieve the default value of the value attribute of a single-element Annotation, given an annotation instance.
ObjectgetDefaultValue(Class annotationType)
Retrieve the default value of the value attribute of a single-element Annotation, given the Class annotation type .
ObjectgetValue(@Nullable Annotation annotation, @Nullable String attributeName)
Retrieve the value of a named attribute, given an annotation instance.
ObjectgetValue(Annotation annotation)
Retrieve the value of the value attribute of a single-element Annotation, given an annotation instance.
booleanisAnnotationDeclaredLocally(Class annotationType, Class clazz)
Determine whether an annotation of the specified annotationType is declared locally (i.e.
AsynthesizeAnnotation(A annotation, @Nullable AnnotatedElement annotatedElement)
Synthesize an annotation from the supplied annotation by wrapping it in a dynamic proxy that transparently enforces attribute alias semantics for annotation attributes that are annotated with AliasFor @AliasFor .
AsynthesizeAnnotation(Map attributes, Class annotationType, @Nullable AnnotatedElement annotatedElement)
Synthesize an annotation from the supplied map of annotation attributes by wrapping the map in a dynamic proxy that implements an annotation of the specified annotationType and transparently enforces attribute alias semantics for annotation attributes that are annotated with AliasFor @AliasFor .