Class MethodOverrideMatcher<T extends MethodDescription>

    • Constructor Detail

      • MethodOverrideMatcher

        public MethodOverrideMatcher​(ElementMatcher<? super TypeDescription.Generic> matcher)
        Creates a new method override matcher.
        Parameters:
        matcher - The matcher that is to be applied to the type that declares a method of the same shape.
    • 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.