Interface MethodMatchers.ParametersBuilder
-
- All Known Implementing Classes:
MethodMatchersBuilder
- Enclosing interface:
- MethodMatchers
public static interface MethodMatchers.ParametersBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodMatchers.ParametersBuilder
addParametersMatcher(String... parametersType)
Match a method signature with exactly the types provided.MethodMatchers.ParametersBuilder
addParametersMatcher(Predicate<List<Type>> parametersType)
Match a method signature respecting the predicate.MethodMatchers.ParametersBuilder
addWithoutParametersMatcher()
Match a method signature without parameters.MethodMatchers
build()
Build a MethodMatchers.MethodMatchers.ParametersBuilder
withAnyParameters()
Match a method signature with any number of parameters of any types.
-
-
-
Method Detail
-
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
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
MethodMatchers build()
Build a MethodMatchers. Throw an Exception if the MethodMatchers is not correctly setup (no parameters list defined).
-
-