public static class MetaAnnotationUtils.UntypedAnnotationDescriptor extends MetaAnnotationUtils.AnnotationDescriptor<Annotation>
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) |
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass,
Class<?> declaringClass,
Annotation composedAnnotation,
Annotation annotation) |
Modifier and Type | Method and Description |
---|---|
Annotation |
synthesizeAnnotation()
Throws an
UnsupportedOperationException since the type of annotation
represented by the AnnotationAttributes in
an UntypedAnnotationDescriptor is unknown. |
getAnnotation, getAnnotationAttributes, getAnnotationType, getComposedAnnotation, getComposedAnnotationType, getDeclaringClass, getRootDeclaringClass, toString
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, @Nullable Annotation composedAnnotation, Annotation annotation)
public Annotation synthesizeAnnotation()
UnsupportedOperationException
since the type of annotation
represented by the AnnotationAttributes
in
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)