Class MethodDelegationBinder.MethodInvoker.Virtual
java.lang.Object
net.bytebuddy.implementation.bind.MethodDelegationBinder.MethodInvoker.Virtual
- All Implemented Interfaces:
MethodDelegationBinder.MethodInvoker
- Enclosing interface:
- MethodDelegationBinder.MethodInvoker
@Enhance
public static class MethodDelegationBinder.MethodInvoker.Virtual
extends Object
implements MethodDelegationBinder.MethodInvoker
A method invocation that enforces a virtual invocation that is dispatched on a given type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.MethodInvoker
MethodDelegationBinder.MethodInvoker.Simple, MethodDelegationBinder.MethodInvoker.Virtual
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription
The type on which a method should be invoked virtually. -
Constructor Summary
ConstructorsConstructorDescriptionVirtual
(TypeDescription typeDescription) Creates an immutable method invoker that dispatches all methods on a given type. -
Method Summary
Modifier and TypeMethodDescriptioninvoke
(MethodDescription methodDescription) Creates a method invocation for a given method.
-
Field Details
-
typeDescription
The type on which a method should be invoked virtually.
-
-
Constructor Details
-
Virtual
Creates an immutable method invoker that dispatches all methods on a given type.- Parameters:
typeDescription
- The type on which the method is invoked by virtual invocation.
-
-
Method Details
-
invoke
Creates a method invocation for a given method.- Specified by:
invoke
in interfaceMethodDelegationBinder.MethodInvoker
- Parameters:
methodDescription
- The method to be invoked.- Returns:
- A stack manipulation encapsulating this method invocation.
-