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<MemberSubstitution.Target>
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>
A factory to create an argument substitution step.
-
-
Field Summary
Fields Modifier and Type Field Description private intindexThe index of the argument to substitute.private StackManipulationstackManipulationThe stack manipulation that loads the substituted argument.private TypeDescription.GenerictypeDescriptionThe type of the substituted argument.
-
Constructor Summary
Constructors Constructor Description Factory(StackManipulation stackManipulation, java.lang.reflect.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target>make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)Creates a substitution step for an instrumented method.
-
-
-
Field Detail
-
stackManipulation
private final StackManipulation stackManipulation
The stack manipulation that loads the substituted argument.
-
typeDescription
private final TypeDescription.Generic typeDescription
The type of the substituted argument.
-
index
private final int index
The index of the argument to substitute.
-
-
Constructor Detail
-
Factory
public Factory(StackManipulation stackManipulation, java.lang.reflect.Type type, int index)
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 Detail
-
make
public MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target> 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<MemberSubstitution.Target>- 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.
-
-