枚举 MergedAnnotations.SearchStrategy
- java.lang.Object
- java.lang.Enum<MergedAnnotations.SearchStrategy>
- org.springframework.core.annotation.MergedAnnotations.SearchStrategy
- 封闭接口:
- MergedAnnotations
public static enum MergedAnnotations.SearchStrategy extends Enum<MergedAnnotations.SearchStrategy>
Search strategies supported byMergedAnnotations.from(AnnotatedElement, SearchStrategy).Each strategy creates a different set of aggregates that will be combined to create the final
MergedAnnotations.
枚举常量概要
枚举常量 枚举常量 说明 DIRECTFind only directly declared annotations, without considering@Inheritedannotations and without searching superclasses or implemented interfaces.INHERITED_ANNOTATIONSFind all directly declared annotations as well as any@Inheritedsuperclass annotations.SUPERCLASSFind all directly declared and superclass annotations.TYPE_HIERARCHYPerform a full search of the entire type hierarchy, including superclasses and implemented interfaces.TYPE_HIERARCHY_AND_ENCLOSING_CLASSESPerform a full search of the entire type hierarchy on the source and any enclosing classes.
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static MergedAnnotations.SearchStrategyvalueOf(String name)返回带有指定名称的该类型的枚举常量。static MergedAnnotations.SearchStrategy[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
枚举常量详细资料
DIRECT
public static final MergedAnnotations.SearchStrategy DIRECT
Find only directly declared annotations, without considering@Inheritedannotations and without searching superclasses or implemented interfaces.
INHERITED_ANNOTATIONS
public static final MergedAnnotations.SearchStrategy