Class MethodParameterTypesMatcher<T extends ParameterList<?>>

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

@Enhance public class MethodParameterTypesMatcher<T extends ParameterList<?>> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that matches a method's parameter types.
  • Field Details

  • Constructor Details

    • MethodParameterTypesMatcher

      public MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher)
      Creates a new matcher for a method's parameter types.
      Parameters:
      matcher - The matcher to apply to the type of the parameter.
  • Method Details

    • 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 ParameterList<?>>
      Parameters:
      target - The instance to be matched.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object