Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading
@Enhance
protected static class MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading.OfInstrumentedMethod
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory that resolves a given argument of the instrumented method.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OfInstrumentedMethod
(int index) Creates a new factory for resolving an argument of the instrumented method. -
Method Summary
Modifier and TypeMethodDescriptionmake
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Field Details
-
index
private final int indexThe index of the argument to load.
-
-
Constructor Details
-
OfInstrumentedMethod
protected OfInstrumentedMethod(int index) Creates a new factory for resolving an argument of the instrumented method.- Parameters:
index
- The index of the argument to load.
-
-
Method Details
-
make
public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.Factory
- Parameters:
assigner
- The assigner to use.typing
- The typing to use.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- The substitution step to apply.
-