Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation
@Enhance
protected static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation.Resolved
extends Object
implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
A resolved dispatcher for a dynamically bound method invocation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodDescription.InDefinedShapeThe bootstrap method.private final MethodDescription.InDefinedShapeThe delegation target.private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.ResolvedThe bootstrap argument resolver to use. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolved(MethodDescription.InDefinedShape bootstrapMethod, MethodDescription.InDefinedShape delegate, MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved resolver) Creates a resolved dispatcher of a dynamic method dispatcher. -
Method Summary
Modifier and TypeMethodDescriptionapply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.
-
Field Details
-
bootstrapMethod
The bootstrap method. -
delegate
The delegation target. -
resolver
private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved resolverThe bootstrap argument resolver to use.
-
-
Constructor Details
-
Resolved
protected Resolved(MethodDescription.InDefinedShape bootstrapMethod, MethodDescription.InDefinedShape delegate, MemberSubstitution.Substitution.Chain.Step.ForDelegation.BootstrapArgumentResolver.Resolved resolver) Creates a resolved dispatcher of a dynamic method dispatcher.- Parameters:
bootstrapMethod- The bootstrap method.delegate- The delegation target.resolver- The bootstrap argument resolver to use.
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
-
apply
public StackManipulation apply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle) Creates a stack manipulation for a given substitution target.- Specified by:
applyin interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved- Parameters:
target- The target member of invokedynamic invocation.methodHandle- A method handle that describes the invocation.- Returns:
- A stack manipulation that executes the represented delegation.
-