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 Classes Modifier and Type Interface Description static class
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction
A compiled implementation delegate for a constructor delegation.static class
MethodDelegation.ImplementationDelegate.Compiled.ForField
A compiled implementation delegate that invokes methods on a field.static class
MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn
A compiled implementation delegate that invokes a method on an instance that is returned by another method.static class
MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
A compiled implementation delegate for invoking a static method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<MethodDelegationBinder.Record>
getRecords()
Returns a list of binding records to consider for delegation.MethodDelegationBinder.MethodInvoker
invoke()
Resolves an invoker to use for invoking the delegation target.StackManipulation
prepare(MethodDescription instrumentedMethod)
Resolves a stack manipulation that prepares the delegation invocation.
-
-
-
Method Detail
-
prepare
StackManipulation prepare(MethodDescription instrumentedMethod)
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
java.util.List<MethodDelegationBinder.Record> getRecords()
Returns a list of binding records to consider for delegation.- Returns:
- A list of delegation binder records to consider.
-
-