Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation
@Enhance
protected static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory
A factory for a dynamic method invocation of the dispatcher method or constructor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InDefinedShape
The bootstrap method.private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Factory
A factory for a bootstrap argument resolver. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Factory
(MethodDescription.InDefinedShape bootstrapMethod, MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Factory resolverFactory) Creates a new factory for a dispatcher using a dynamic method invocation. -
Method Summary
Modifier and TypeMethodDescriptionmake
(MethodDescription.InDefinedShape delegate) Creates a dispatcher for a given delegation method.
-
Field Details
-
bootstrapMethod
The bootstrap method. -
resolverFactory
private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Factory resolverFactoryA factory for a bootstrap argument resolver.
-
-
Constructor Details
-
Factory
protected Factory(MethodDescription.InDefinedShape bootstrapMethod, MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Factory resolverFactory) Creates a new factory for a dispatcher using a dynamic method invocation.- Parameters:
bootstrapMethod
- The bootstrap method.resolverFactory
- A factory for a bootstrap argument resolver.
-
-
Method Details
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher make(MethodDescription.InDefinedShape delegate) Creates a dispatcher for a given delegation method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory
- Parameters:
delegate
- The method or constructor to delegate to.- Returns:
- An appropriate dispatcher.
-