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>
  • Method Details

    • test

      public boolean test(RuntimeHints hints)
      Specified by:
      test in interface Predicate<RuntimeHints>
    • withMemberCategory

      public Predicate<RuntimeHints> withMemberCategory(MemberCategory memberCategory)
      Refine the current predicate to only match if the given MemberCategory is present.
      Parameters:
      memberCategory - the member category
      Returns:
      the refined RuntimeHints predicate
    • withMemberCategories

      public Predicate<RuntimeHints> withMemberCategories(MemberCategory... memberCategories)
      Refine the current predicate to only match if the given categories are present.
      Parameters:
      memberCategories - the member categories
      Returns:
      the refined RuntimeHints predicate
    • withAnyMemberCategory

      public Predicate<RuntimeHints> withAnyMemberCategory(MemberCategory... memberCategories)
      Refine the current predicate to match if any of the given categories is present.
      Parameters:
      memberCategories - the member categories
      Returns:
      the refined RuntimeHints predicate
    • withAnyConstructor

      public Predicate<RuntimeHints> withAnyConstructor()
      Refine the current predicate to only match if a hint is present for any of its constructors.
      Returns:
      the refined RuntimeHints predicate
    • withAnyMethod

      public Predicate<RuntimeHints> withAnyMethod()
      Refine the current predicate to only match if a hint is present for any of its methods.
      Returns:
      the refined RuntimeHints predicate
    • withAnyField

      public Predicate<RuntimeHints> withAnyField()
      Refine the current predicate to only match if a hint is present for any of its fields.
      Returns:
      the refined RuntimeHints predicate