Package | Description |
---|---|
com.comphenix.protocol.reflect.fuzzy |
Modifier and Type | Method and Description |
---|---|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.banModifier(int modifier) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.declaringClassDerivedOf(java.lang.Class<?> declaringClass) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.declaringClassExactType(java.lang.Class<?> declaringClass) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.declaringClassMatching(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.declaringClassSuperOf(java.lang.Class<?> declaringClass) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionExactType(java.lang.Class<?> type)
Add a throwable exception that must match the given type exactly.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionExactType(java.lang.Class<?> type,
int index)
Add a throwable exception that must match the given type exactly and index.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionMatches(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
Add a throwable exception that must match the given matcher,
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionMatches(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher,
int index)
Add a throwable exception that must match the given matcher and index.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionSuperOf(java.lang.Class<?> type)
Add a throwable exception that must match the given type or be derived.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.exceptionSuperOf(java.lang.Class<?> type,
int index)
Add a throwable exception that must match the given type or be derived and index.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.nameExact(java.lang.String name) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.nameRegex(java.util.regex.Pattern pattern) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.nameRegex(java.lang.String regex) |
static FuzzyMethodContract.Builder |
FuzzyMethodContract.newBuilder()
Return a method contract builder.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterCount(int expectedCount)
Set the expected number of parameters in the matching method.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterExactType(java.lang.Class<?> type)
Add a new required parameter by type for any matching method.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterExactType(java.lang.Class<?> type,
int index)
Add a new required parameter by type and position for any matching method.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterMatches(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
Add a new required parameter whose type must match the given class matcher.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterMatches(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher,
int index)
Add a new required parameter whose type must match the given class matcher and index.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterSuperOf(java.lang.Class<?> type)
Add a new required parameter whose type must be a superclass of the given type.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.parameterSuperOf(java.lang.Class<?> type,
int index)
Add a new required parameter whose type must be a superclass of the given type.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.requireModifier(int modifier) |
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.returnDerivedOf(java.lang.Class<?> type)
Set the expected super class of the return type for every matching method.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.returnTypeExact(java.lang.Class<?> type)
Set the return type of a matching method exactly.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.returnTypeMatches(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
Set a matcher that must match the return type of a matching method.
|
FuzzyMethodContract.Builder |
FuzzyMethodContract.Builder.returnTypeVoid()
Require a void method.
|
Modifier and Type | Method and Description |
---|---|
FuzzyClassContract.Builder |
FuzzyClassContract.Builder.constructor(FuzzyMethodContract.Builder builder)
Add a new constructor contract via a builder.
|
FuzzyClassContract.Builder |
FuzzyClassContract.Builder.method(FuzzyMethodContract.Builder builder)
Add a new method contract via a builder.
|