Enum Class MergedAnnotations.SearchStrategy
- All Implemented Interfaces:
- Serializable,- Comparable<MergedAnnotations.SearchStrategy>,- Constable
- Enclosing interface:
- MergedAnnotations
MergedAnnotations.search(SearchStrategy)
 as well as MergedAnnotations.from(AnnotatedElement, SearchStrategy)
 and variants of that method.
 Each strategy creates a different set of aggregates that will be
 combined to create the final MergedAnnotations.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionFind only directly declared annotations, without considering@Inheritedannotations and without searching superclasses or implemented interfaces.Find all directly declared annotations as well as any@Inheritedsuperclass annotations.Find all directly declared and superclass annotations.Perform a full search of the entire type hierarchy, including superclasses and implemented interfaces.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MergedAnnotations.SearchStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
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.This strategy is only really useful when used with Classtypes since the@Inheritedannotation is ignored for all other annotated elements.This strategy does not search implemented interfaces. 
- 
SUPERCLASSFind all directly declared and superclass annotations.This strategy is similar to INHERITED_ANNOTATIONSexcept the annotations do not need to be meta-annotated with@Inherited.This strategy does not search implemented interfaces. 
- 
TYPE_HIERARCHYPerform a full search of the entire type hierarchy, including superclasses and implemented interfaces.When combined with MergedAnnotations.Search.withEnclosingClasses(Predicate), enclosing classes will also be recursively searched if the suppliedPredicateevaluates totrue.Superclass and enclosing class annotations do not need to be meta-annotated with @Inherited.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-