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<MemberSubstitution.Target>
- 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<MemberSubstitution.Target>
A factory to create a step for a method invocation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescriptionThe 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.Factory(Constructor<?> constructor, Map<Integer, Integer> substitutions) Creates a factory for a method invocation without parameter substitutions.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
-
-
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:
method- The invoked method.substitutions- A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
-
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:
constructor- The constructor.substitutions- A mapping of substituted parameter indices. For targets that are non-static methods, the targeted index is increased by one.
-
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<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.
-