Class ReflectionHintsPredicates.TypeHintPredicate
java.lang.Object
org.springframework.aot.hint.predicate.ReflectionHintsPredicates.TypeHintPredicate
- All Implemented Interfaces:
Predicate<RuntimeHints>
- Enclosing class:
ReflectionHintsPredicates
public static class ReflectionHintsPredicates.TypeHintPredicate
extends Object
implements Predicate<RuntimeHints>
- Since:
- 6.0
- Author:
- Brian Clozel, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionbooleantest(RuntimeHints hints) withAnyMemberCategory(MemberCategory... memberCategories) Refine the current predicate to match if any of the givencategoriesis present.withMemberCategories(MemberCategory... memberCategories) Refine the current predicate to only match if the givencategoriesare present.withMemberCategory(MemberCategory memberCategory) Refine the current predicate to only match if the givenMemberCategoryis present.
-
Method Details
-
test
- Specified by:
testin interfacePredicate<RuntimeHints>
-
withMemberCategory
Refine the current predicate to only match if the givenMemberCategoryis present.- Parameters:
memberCategory- the member category- Returns:
- the refined
RuntimeHintspredicate
-
withMemberCategories
Refine the current predicate to only match if the givencategoriesare present.- Parameters:
memberCategories- the member categories- Returns:
- the refined
RuntimeHintspredicate
-
withAnyMemberCategory
Refine the current predicate to match if any of the givencategoriesis present.- Parameters:
memberCategories- the member categories- Returns:
- the refined
RuntimeHintspredicate
-