Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution.Factory
- All Known Implementing Classes:
MemberSubstitution.Substitution.Chain.Factory,MemberSubstitution.Substitution.ForFieldAccess.OfGivenField,MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField,MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod,MemberSubstitution.Substitution.ForMethodInvocation.OfInstrumentedMethod,MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod,MemberSubstitution.Substitution.ForValue,MemberSubstitution.Substitution.Stubbing
- Enclosing interface:
MemberSubstitution.Substitution
public static interface MemberSubstitution.Substitution.Factory
A factory for creating a substitution for an instrumented method.
-
Method Summary
Modifier and TypeMethodDescriptionmake(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.
-
Method Details
-
make
MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.typePool- The type pool being used.- Returns:
- The substitution to apply within the instrumented method.
-