Package net.bytebuddy.implementation
Class MethodDelegation.ImplementationDelegate.ForStaticMethod
java.lang.Object
net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate.ForStaticMethod
- All Implemented Interfaces:
InstrumentedType.Prepareable
,MethodDelegation.ImplementationDelegate
- Enclosing interface:
MethodDelegation.ImplementationDelegate
@Enhance
public static class MethodDelegation.ImplementationDelegate.ForStaticMethod
extends Object
implements MethodDelegation.ImplementationDelegate
An implementation delegate for a static method delegation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<MethodDelegationBinder.Record> The precompiled records.Fields inherited from interface net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate
FIELD_NAME_PREFIX
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForStaticMethod
(List<MethodDelegationBinder.Record> records) Creates a new implementation delegate for a static method delegation. -
Method Summary
Modifier and TypeMethodDescriptioncompile
(TypeDescription instrumentedType) Compiles this implementation delegate.protected static MethodDelegation.ImplementationDelegate
of
(MethodList<?> methods, MethodDelegationBinder methodDelegationBinder) Precompiles a static method delegation for a given list of methods.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
records
The precompiled records.
-
-
Constructor Details
-
ForStaticMethod
Creates a new implementation delegate for a static method delegation.- Parameters:
records
- The precompiled record.
-
-
Method Details
-
of
protected static MethodDelegation.ImplementationDelegate of(MethodList<?> methods, MethodDelegationBinder methodDelegationBinder) Precompiles a static method delegation for a given list of methods.- Parameters:
methods
- The methods to consider.methodDelegationBinder
- The method delegation binder to use.- Returns:
- An appropriate implementation delegate.
-
prepare
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
compile
Compiles this implementation delegate.- Specified by:
compile
in interfaceMethodDelegation.ImplementationDelegate
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A compiled implementation delegate.
-