Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher,MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
- Enclosing interface:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
A dispatcher that invokes a delegate method directly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.FactoryA factory for creating a dispatcher for a regular method invocation.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForDynamicInvocation, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation, MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescriptiondelegateThe delegation method.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForRegularInvocation(MethodDescription delegate)Creates a dispatcher for a regular method invocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulationapply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle)Creates a stack manipulation for a given substitution target.StackManipulationinitialize()MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolvedresolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)Resolves a dispatcher for a given instrumented type and method.
-
-
-
Field Detail
-
delegate
private final MethodDescription delegate
The delegation method.
-
-
Constructor Detail
-
ForRegularInvocation
protected ForRegularInvocation(MethodDescription delegate)
Creates a dispatcher for a regular method invocation.- Parameters:
delegate- The delegation method.
-
-
Method Detail
-
resolve
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves a dispatcher for a given instrumented type and method.- Specified by:
resolvein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.- Returns:
- A resolved version of this dispatcher.
-
initialize
public StackManipulation 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.
-
-