Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution.Factory<S extends MemberSubstitution.Target>
- Type Parameters:
S- The type of the matched target.
- 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<T extends MemberSubstitution.Target>
public static interface MemberSubstitution.Substitution.Factory<S extends MemberSubstitution.Target>
A factory for creating a substitution for an instrumented method.
-
Method Summary
Modifier and TypeMethodDescriptionMemberSubstitution.Substitution<? super S> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a substitution for an instrumented method.
-
Method Details
-
make
MemberSubstitution.Substitution<? super S> 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.
-