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 java.lang.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
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The type on which a method should be invoked virtually.
-
Constructor Summary
Constructors Constructor Description Virtual(TypeDescription typeDescription)
Creates an immutable method invoker that dispatches all methods on a given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulation
invoke(MethodDescription methodDescription)
Creates a method invocation for a given method.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The type on which a method should be invoked virtually.
-
-
Constructor Detail
-
Virtual
public Virtual(TypeDescription typeDescription)
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 Detail
-
invoke
public StackManipulation invoke(MethodDescription methodDescription)
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.
-
-