Package | Description |
---|---|
com.comphenix.protocol.reflect | |
com.comphenix.protocol.reflect.fuzzy |
Modifier and Type | Method and Description |
---|---|
static MethodInfo |
MethodInfo.fromConstructor(java.lang.reflect.Constructor<?> constructor)
Wraps a constructor as a method information object.
|
static MethodInfo |
MethodInfo.fromMethod(java.lang.reflect.Method method)
Wraps a method as a MethodInfo object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<MethodInfo> |
MethodInfo.fromConstructors(java.util.Collection<java.lang.reflect.Constructor<?>> constructors)
Construct a list of method infos from a given collection of constructors.
|
static java.util.Collection<MethodInfo> |
MethodInfo.fromConstructors(java.lang.reflect.Constructor<?>[] constructors)
Construct a list of method infos from a given array of constructors.
|
static java.util.List<MethodInfo> |
MethodInfo.fromMethods(java.util.Collection<java.lang.reflect.Method> methods)
Construct a list of method infos from a given collection of methods.
|
static java.util.Collection<MethodInfo> |
MethodInfo.fromMethods(java.lang.reflect.Method[] methods)
Construct a list of method infos from a given array of methods.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Constructor<?> |
FuzzyReflection.getConstructor(AbstractFuzzyMatcher<MethodInfo> matcher)
Retrieve the first constructor that matches.
|
java.util.List<java.lang.reflect.Constructor<?>> |
FuzzyReflection.getConstructorList(AbstractFuzzyMatcher<MethodInfo> matcher)
Retrieve a list of every constructor that matches the given matcher.
|
java.lang.reflect.Method |
FuzzyReflection.getMethod(AbstractFuzzyMatcher<MethodInfo> matcher)
Retrieve the first method that matches.
|
java.util.List<java.lang.reflect.Method> |
FuzzyReflection.getMethodList(AbstractFuzzyMatcher<MethodInfo> matcher)
Retrieve a list of every method that matches the given matcher.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> |
FuzzyClassContract.getConstructorContracts()
Retrieve an immutable list of every constructor contract.
|
com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> |
FuzzyClassContract.getMethodContracts()
Retrieve an immutable list of every method contract.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FuzzyMethodContract.isMatch(MethodInfo value,
java.lang.Object parent) |
Modifier and Type | Method and Description |
---|---|
FuzzyClassContract.Builder |
FuzzyClassContract.Builder.constructor(AbstractFuzzyMatcher<MethodInfo> matcher)
Add a new constructor contract.
|
FuzzyClassContract.Builder |
FuzzyClassContract.Builder.method(AbstractFuzzyMatcher<MethodInfo> matcher)
Add a new method contract.
|