类 MetaAnnotationUtils.UntypedAnnotationDescriptor
- java.lang.Object
- org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor<Annotation>
- org.springframework.test.util.MetaAnnotationUtils.UntypedAnnotationDescriptor
public static class MetaAnnotationUtils.UntypedAnnotationDescriptor extends MetaAnnotationUtils.AnnotationDescriptor<Annotation>
Untyped extension ofAnnotationDescriptor
that is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.
构造器概要
构造器 构造器 说明 UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, Annotation composedAnnotation, Annotation annotation)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Annotation
synthesizeAnnotation()
Throws anUnsupportedOperationException
since the type of annotation represented by theAnnotationAttributes
in anUntypedAnnotationDescriptor
is unknown.从类继承的方法 org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor
getAnnotation, getAnnotationAttributes, getAnnotationType, getComposedAnnotation, getComposedAnnotationType, getDeclaringClass, getRootDeclaringClass, toString
构造器详细资料
UntypedAnnotationDescriptor
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Annotation annotation)
UntypedAnnotationDescriptor
public UntypedAnnotationDescriptor(Class<?> rootDeclaringClass, Class<?> declaringClass, @Nullable Annotation composedAnnotation, Annotation annotation)
方法详细资料
synthesizeAnnotation
public Annotation synthesizeAnnotation()
Throws anUnsupportedOperationException
since the type of annotation represented by theAnnotationAttributes
in anUntypedAnnotationDescriptor
is unknown.- 覆盖:
synthesizeAnnotation
在类中MetaAnnotationUtils.AnnotationDescriptor<Annotation>
- 从以下版本开始:
- 4.2
- 另请参阅:
MetaAnnotationUtils.AnnotationDescriptor.getAnnotationAttributes()
,MetaAnnotationUtils.AnnotationDescriptor.getAnnotationType()
,AnnotationUtils.synthesizeAnnotation(java.util.Map, Class, java.lang.reflect.AnnotatedElement)