Interface MethodMatchers.ParametersBuilder
- All Known Implementing Classes:
MethodMatchersBuilder
- Enclosing interface:
- MethodMatchers
public static interface MethodMatchers.ParametersBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddParametersMatcher(String... parametersType)
Match a method signature with exactly the types provided.addParametersMatcher(Predicate<List<Type>> parametersType)
Match a method signature respecting the predicate.Match a method signature without parameters.build()
Build a MethodMatchers.Match a method signature with any number of parameters of any types.
-
Method Details
-
withAnyParameters
MethodMatchers.ParametersBuilder 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
Match a method signature with exactly the types provided. Others method adding parameters matcher can be called to match multiples signatures. -
addParametersMatcher
Match a method signature respecting the predicate. Others method adding parameters matcher can be called to match multiples signatures. -
build
MethodMatchers build()Build a MethodMatchers. Throw an Exception if the MethodMatchers is not correctly setup (no parameters list defined).
-