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.CompiledA compiled implementation delegate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodDelegation.ImplementationDelegate.Compiled.ForConstructionA compiled implementation delegate for a constructor delegation.static classMethodDelegation.ImplementationDelegate.Compiled.ForFieldA compiled implementation delegate that invokes methods on a field.static classMethodDelegation.ImplementationDelegate.Compiled.ForMethodReturnA compiled implementation delegate that invokes a method on an instance that is returned by another method.static classMethodDelegation.ImplementationDelegate.Compiled.ForStaticCallA 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.MethodInvokerinvoke()Resolves an invoker to use for invoking the delegation target.StackManipulationprepare(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.
-
-