Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForInvocation
@Enhance
public static class MemberSubstitution.Substitution.Chain.Step.ForInvocation.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory to create a step for a method invocation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription
The invoked method or constructor.A mapping of substituted parameter indices. -
Constructor Summary
ConstructorsConstructorDescriptionFactory
(Constructor<?> constructor) Creates a factory for a method invocation without parameter substitutions.Creates a factory for a method invocation without parameter substitutions.Factory
(MethodDescription methodDescription) Creates a factory for a method invocation without parameter substitutions.Factory
(MethodDescription methodDescription, Map<Integer, Integer> substitutions) Creates a factory for a method invocation. -
Method Summary
Modifier and TypeMethodDescriptionmake
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Field Details
-
methodDescription
The invoked method or constructor. -
substitutions
A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
-
-
Constructor Details
-
Factory
Creates a factory for a method invocation without parameter substitutions.- Parameters:
method
- The invoked method.
-
Factory
Creates a factory for a method invocation without parameter substitutions.- Parameters:
constructor
- The constructor.
-
Factory
Creates a factory for a method invocation without parameter substitutions.- Parameters:
methodDescription
- The invoked method or constructor.
-
Factory
Creates a factory for a method invocation.- Parameters:
methodDescription
- The invoked method or constructor.substitutions
- A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
-
-
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.
-