Class MethodMatcher
java.lang.Object
dev.derklaro.reflexion.matcher.BaseMatcher<Method, MethodMatcher>
dev.derklaro.reflexion.matcher.MethodMatcher
A matcher for methods.
- Since:
- 1.0
-
Field Summary
Fields inherited from class dev.derklaro.reflexion.matcher.BaseMatcher
currentMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MethodMatcherConstructs a new method matcher instance.@NotNull MethodMatcherparameterCount(int count) Checks if the method has the given amount of parameters.Methods inherited from class dev.derklaro.reflexion.matcher.BaseMatcher
and, denyModifier, denyModifiers, derivedType, derivedTypeAt, derivedTypes, exactType, exactTypeAt, exactTypes, hasMatchingName, hasModifier, hasModifiers, hasName, negate, or, superType, superTypeAt, superTypes, test
-
Constructor Details
-
MethodMatcher
private MethodMatcher()
-
-
Method Details
-
newMatcher
Constructs a new method matcher instance.- Returns:
- a new method matcher.
-
parameterCount
Checks if the method has the given amount of parameters.- Parameters:
count- the expected amount of parameters.- Returns:
- the same instance as used to call the method, for chaining.
-