Package net.bytebuddy.implementation
Class MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
java.lang.Object
net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
- All Implemented Interfaces:
MethodDelegation.ImplementationDelegate.Compiled
- Enclosing interface:
MethodDelegation.ImplementationDelegate.Compiled
@Enhance
public static class MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
extends Object
implements MethodDelegation.ImplementationDelegate.Compiled
A compiled implementation delegate for invoking a static method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction, MethodDelegation.ImplementationDelegate.Compiled.ForField, MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn, MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<MethodDelegationBinder.Record> The list of records to consider. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForStaticCall
(List<MethodDelegationBinder.Record> records) Creates a new compiled implementation delegate for a static method call. -
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.
-
Field Details
-
records
The list of records to consider.
-
-
Constructor Details
-
ForStaticCall
Creates a new compiled implementation delegate for a static method call.- Parameters:
records
- The list of records to consider.
-
-
Method Details
-
prepare
Resolves a stack manipulation that prepares the delegation invocation.- Specified by:
prepare
in interfaceMethodDelegation.ImplementationDelegate.Compiled
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- A stack manipulation that is applied prior to loading arguments and executing the method call.
-
invoke
Resolves an invoker to use for invoking the delegation target.- Specified by:
invoke
in interfaceMethodDelegation.ImplementationDelegate.Compiled
- Returns:
- The method invoker to use.
-
getRecords
Returns a list of binding records to consider for delegation.- Specified by:
getRecords
in interfaceMethodDelegation.ImplementationDelegate.Compiled
- Returns:
- A list of delegation binder records to consider.
-