public interface RepeatableMapping
假设可以通过某个注解的某个属性获得另一批注解,则称后者为元素注解,而前者为容器注解。
RepeatableMapping则用于描述一对元素注解与容器注解之间的映射关系。
| 限定符和类型 | 方法和说明 |
|---|---|
Class<? extends Annotation> |
getContainerType()
获取容器注解类型
|
Annotation[] |
getElementsFromContainer(Annotation container)
从容器注解中获取元素注解
|
Class<? extends Annotation> |
getElementType()
获取元素注解类型
|
boolean |
hasContainer()
当元素注解是否存在容器注解
|
Class<? extends Annotation> getElementType()
Class<? extends Annotation> getContainerType()
Annotation[] getElementsFromContainer(Annotation container)
container - 容器注解对象boolean hasContainer()
Copyright © 2022. All rights reserved.