public static class MetaAnnotationUtils.UntypedAnnotationDescriptor extends MetaAnnotationUtils.AnnotationDescriptor<Annotation>
MetaAnnotationUtils.AnnotationDescriptor that is used
to describe the declaration of one of several candidate annotation types
where the actual annotation type cannot be predetermined.| Constructor and Description |
|---|
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass,
Annotation annotation)
Deprecated.
As of Spring Framework 5.3, in favor of
UntypedAnnotationDescriptor#UntypedAnnotationDescriptor(Class, Annotation, Class[]) |
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass,
Annotation annotation,
Class<? extends Annotation>[] annotationTypes) |
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass,
Class<?> declaringClass,
Annotation composedAnnotation,
Annotation annotation)
Deprecated.
As of Spring Framework 5.3, in favor of
UntypedAnnotationDescriptor#UntypedAnnotationDescriptor(Class, Class, Annotation, Annotation, Class[]) |
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass,
Class<?> declaringClass,
Annotation composedAnnotation,
Annotation annotation,
Class<? extends Annotation>[] annotationTypes) |
| Modifier and Type | Method and Description |
|---|---|
Set<Annotation> |
findAllLocalMergedAnnotations()
Throws an
UnsupportedOperationException since the type of annotation
represented by an UntypedAnnotationDescriptor is unknown. |
MetaAnnotationUtils.UntypedAnnotationDescriptor |
next()
Find the next
MetaAnnotationUtils.UntypedAnnotationDescriptor for the specified
annotation types in the hierarchy above the
root declaring class of this
descriptor. |
Annotation |
synthesizeAnnotation()
Throws an
UnsupportedOperationException since the type of annotation
represented by an UntypedAnnotationDescriptor is unknown. |
getAnnotation, getAnnotationAttributes, getAnnotationType, getComposedAnnotation, getComposedAnnotationType, getDeclaringClass, getRootDeclaringClass, toString@Deprecated public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
UntypedAnnotationDescriptor#UntypedAnnotationDescriptor(Class, Annotation, Class[])public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation, @Nullable Class<? extends Annotation>[] annotationTypes)
@Deprecated public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, @Nullable Annotation composedAnnotation, Annotation annotation)
UntypedAnnotationDescriptor#UntypedAnnotationDescriptor(Class, Class, Annotation, Annotation, Class[])public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, @Nullable Annotation composedAnnotation, Annotation annotation, @Nullable Class<? extends Annotation>[] annotationTypes)
public Annotation synthesizeAnnotation()
UnsupportedOperationException since the type of annotation
represented by an UntypedAnnotationDescriptor is unknown.synthesizeAnnotation in class MetaAnnotationUtils.AnnotationDescriptor<Annotation>MetaAnnotationUtils.AnnotationDescriptor.getAnnotationAttributes(),
MetaAnnotationUtils.AnnotationDescriptor.getAnnotationType(),
AnnotationUtils.synthesizeAnnotation(java.util.Map, Class, java.lang.reflect.AnnotatedElement)@Nullable public MetaAnnotationUtils.UntypedAnnotationDescriptor next()
MetaAnnotationUtils.UntypedAnnotationDescriptor for the specified
annotation types in the hierarchy above the
root declaring class of this
descriptor.
If one of the corresponding annotations is found in the superclass hierarchy of the root declaring class, that will be returned. Otherwise, an attempt will be made to find a corresponding annotation in the enclosing class hierarchy of the root declaring class if appropriate.
next in class MetaAnnotationUtils.AnnotationDescriptor<Annotation>nullMetaAnnotationUtils.AnnotationDescriptor.next()public Set<Annotation> findAllLocalMergedAnnotations()
UnsupportedOperationException since the type of annotation
represented by an UntypedAnnotationDescriptor is unknown.findAllLocalMergedAnnotations in class MetaAnnotationUtils.AnnotationDescriptor<Annotation>Annotations found,
or an empty set if none were found