接口 Annotatable
- 所有已知实现类:
FrameworkField
,FrameworkMember
,FrameworkMethod
,TestClass
public interface Annotatable
A model element that may have annotations.- 从以下版本开始:
- 4.12
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <T extends Annotation>
TgetAnnotation(Class<T> annotationType)
Returns the annotation on the model element of the given type, or @code{null}Annotation[]
getAnnotations()
Returns the model elements' annotations.
方法详细资料
getAnnotations
Annotation[] getAnnotations()
Returns the model elements' annotations.
getAnnotation
<T extends Annotation> T getAnnotation(Class<T> annotationType)
Returns the annotation on the model element of the given type, or @code{null}