Class DeclaringFieldMatcher<T extends TypeDefinition>

    • Field Detail

      • matcher

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

      • 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 Detail

      • matches

        public boolean matches​(T target)
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object