Class DeclaringMethodMatcher<T extends TypeDefinition>

    • Field Detail

      • matcher

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

      • DeclaringMethodMatcher

        public DeclaringMethodMatcher​(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher)
        Creates a new matcher for a type's declared methods.
        Parameters:
        matcher - The method matcher to apply to the declared methods of the matched type description.
    • Method Detail

      • doMatch

        protected boolean doMatch​(T target)
        Matches the supplied value if it was found not to be null.
        Specified by:
        doMatch in class ElementMatcher.Junction.ForNonNullValues<T extends TypeDefinition>
        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