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 java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory
A factory for a dynamic method invocation of the dispatcher method or constructor.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescription.InDefinedShapebootstrapMethodThe bootstrap method.private MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.FactoryresolverFactoryA factory for a bootstrap argument resolver.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFactory(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatchermake(MethodDescription.InDefinedShape delegate)Creates a dispatcher for a given delegation method.
-
-
-
Field Detail
-
bootstrapMethod
private final MethodDescription.InDefinedShape bootstrapMethod
The bootstrap method.
-
resolverFactory
private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Factory resolverFactory
A factory for a bootstrap argument resolver.
-
-
Constructor Detail
-
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 Detail
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher make(MethodDescription.InDefinedShape delegate)
Creates a dispatcher for a given delegation method.- Specified by:
makein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory- Parameters:
delegate- The method or constructor to delegate to.- Returns:
- An appropriate dispatcher.
-
-