@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.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used.Copyright © 2014–2024. All rights reserved.