Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution
@Enhance
public static class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory to create an argument substitution step.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe index of the argument to substitute.private final StackManipulationThe stack manipulation that loads the substituted argument.private final TypeDescription.GenericThe type of the substituted argument. -
Constructor Summary
ConstructorsConstructorDescriptionFactory(StackManipulation stackManipulation, Type type, int index) Creates a factory for an argument substitution step.Factory(StackManipulation stackManipulation, TypeDescription.Generic typeDescription, int index) Creates a factory for an argument substitution step. -
Method Summary
Modifier and TypeMethodDescriptionmake(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Field Details
-
stackManipulation
The stack manipulation that loads the substituted argument. -
typeDescription
The type of the substituted argument. -
index
private final int indexThe index of the argument to substitute.
-
-
Constructor Details
-
Factory
Creates a factory for an argument substitution step.- Parameters:
stackManipulation- The stack manipulation that loads the substituted argument.type- The type of the substituted argument.index- The index of the argument to substitute.
-
Factory
public Factory(StackManipulation stackManipulation, TypeDescription.Generic typeDescription, int index) Creates a factory for an argument substitution step.- Parameters:
stackManipulation- The stack manipulation that loads the substituted argument.typeDescription- The type of the substituted argument.index- The index of the argument to substitute.
-
-
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:
makein 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.
-