Class ConstructorMatcher
java.lang.Object
dev.derklaro.reflexion.matcher.BaseMatcher<Constructor<?>, ConstructorMatcher>
dev.derklaro.reflexion.matcher.ConstructorMatcher
- All Implemented Interfaces:
Predicate<Constructor<?>>
A matcher for constructors.
- Since:
- 1.0
-
Field Summary
Fields inherited from class dev.derklaro.reflexion.matcher.BaseMatcher
currentMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ConstructorMatcherConstructs a new constructor matcher instance.@NotNull ConstructorMatcherparameterCount(int count) Checks if the constructor 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
-
ConstructorMatcher
private ConstructorMatcher()
-
-
Method Details
-
newMatcher
Constructs a new constructor matcher instance.- Returns:
- a new constructor matcher.
-
parameterCount
Checks if the constructor 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.
-