Interface MethodMatchers.ParametersBuilder

All Known Implementing Classes:
MethodMatchersBuilder
Enclosing interface:
MethodMatchers

public static interface MethodMatchers.ParametersBuilder
  • Method Details

    • withAnyParameters

      Match a method signature with any number of parameters of any types. Others method adding parameters matchers can not be called with this method.
    • addWithoutParametersMatcher

      MethodMatchers.ParametersBuilder addWithoutParametersMatcher()
      Match a method signature without parameters. Others method adding parameters matcher can be called to match multiples signatures.
    • addParametersMatcher

      MethodMatchers.ParametersBuilder addParametersMatcher(String... parametersType)
      Match a method signature with exactly the types provided. Others method adding parameters matcher can be called to match multiples signatures.
    • addParametersMatcher

      MethodMatchers.ParametersBuilder addParametersMatcher(Predicate<List<Type>> parametersType)
      Match a method signature respecting the predicate. Others method adding parameters matcher can be called to match multiples signatures.
    • build

      Build a MethodMatchers. Throw an Exception if the MethodMatchers is not correctly setup (no parameters list defined).