Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation
@Enhance
protected static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>
A factory for creating a delegating step during a member substitution.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFactory(MethodDescription.InDefinedShape delegate, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher dispatcher, List<? extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?>> factories) Creates a new factory for a delegating step. -
Method Summary
Modifier and TypeMethodDescriptionmake(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Constructor Details
-
Factory
protected Factory(MethodDescription.InDefinedShape delegate, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher dispatcher, List<? extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?>> factories) Creates a new factory for a delegating step.- Parameters:
delegate- A description of the method or constructor to delegate to.dispatcher- The dispatcher to use for invoking the delegate.factories- The dispatcher to use for invoking the delegate.
-
-
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.
-