Class MethodOverrideMatcher<T extends MethodDescription>

Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class MethodOverrideMatcher<T extends MethodDescription> extends ElementMatcher.Junction.ForNonNullValues<T>
A matcher that checks if any super type of a type declares a method with the same shape of a matched method.
  • Constructor Details

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