Package net.bytebuddy.implementation
Interface MethodDelegation.ImplementationDelegate.Compiled
- All Known Implementing Classes:
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction
,MethodDelegation.ImplementationDelegate.Compiled.ForField
,MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn
,MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
- Enclosing interface:
- MethodDelegation.ImplementationDelegate
public static interface MethodDelegation.ImplementationDelegate.Compiled
A compiled implementation delegate.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A compiled implementation delegate for a constructor delegation.static class
A compiled implementation delegate that invokes methods on a field.static class
A compiled implementation delegate that invokes a method on an instance that is returned by another method.static class
A compiled implementation delegate for invoking a static method. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of binding records to consider for delegation.invoke()
Resolves an invoker to use for invoking the delegation target.prepare
(MethodDescription instrumentedMethod) Resolves a stack manipulation that prepares the delegation invocation.
-
Method Details
-
prepare
Resolves a stack manipulation that prepares the delegation invocation.- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- A stack manipulation that is applied prior to loading arguments and executing the method call.
-
invoke
MethodDelegationBinder.MethodInvoker invoke()Resolves an invoker to use for invoking the delegation target.- Returns:
- The method invoker to use.
-
getRecords
List<MethodDelegationBinder.Record> getRecords()Returns a list of binding records to consider for delegation.- Returns:
- A list of delegation binder records to consider.
-