Class DeclaringFieldMatcher<T extends TypeDefinition>

Type Parameters:
T - The exact type of the annotated element that is matched.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class DeclaringFieldMatcher<T extends TypeDefinition> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that checks if a type description declares fields of a given property.
  • Field Details

    • matcher

      private final ElementMatcher<? super FieldList<?>> matcher
      The field matcher to apply to the declared fields of the matched type description.
  • Constructor Details

    • DeclaringFieldMatcher

      public DeclaringFieldMatcher(ElementMatcher<? super FieldList<? extends FieldDescription>> matcher)
      Creates a new matcher for a type's declared fields.
      Parameters:
      matcher - The field matcher to apply to the declared fields of the matched type description.
  • Method Details