@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod extends Object implements MemberSubstitution.Substitution.Factory
| 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. | 
public OfGivenMethod(MethodDescription methodDescription)
methodDescription - The method to invoke.public MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make in interface MemberSubstitution.Substitution.FactoryinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typePool - The type pool being used.Copyright © 2014–2025. All rights reserved.