@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod extends java.lang.Object implements MemberSubstitution.Substitution.Factory
Modifier and Type | Field and Description |
---|---|
private MethodDescription |
methodDescription
The method to invoke.
|
Constructor and Description |
---|
OfGivenMethod(MethodDescription methodDescription)
Creates a new factory for a substitution that invokes a given method.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Substitution |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
private final MethodDescription methodDescription
public OfGivenMethod(MethodDescription methodDescription)
methodDescription
- The method to invoke.public MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make
in interface MemberSubstitution.Substitution.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used.