Class MethodReturnTypeMatcher<T extends MethodDescription>

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

@Enhance public class MethodReturnTypeMatcher<T extends MethodDescription> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that matches its argument's return type against a given type matcher.
  • Field Details

  • Constructor Details

    • MethodReturnTypeMatcher

      public MethodReturnTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
      Creates a new matcher for a matched element's return type.
      Parameters:
      matcher - The type matcher to apply to the matched element's return type.
  • Method Details