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 class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.ForRegularInvocation.Factory
A 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 MethodDescription
delegate
The delegation method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForRegularInvocation(MethodDescription delegate)
Creates a dispatcher for a regular method invocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulation
apply(MemberSubstitution.Target target, JavaConstant.MethodHandle methodHandle)
Creates a stack manipulation for a given substitution target.StackManipulation
initialize()
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Resolved
resolve(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:
resolve
in 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:
initialize
in 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:
apply
in 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.
-
-