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 java.lang.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
Fields Modifier and Type Field Description private java.util.List<MethodDelegationBinder.Record>recordsThe precompiled records.-
Fields inherited from interface net.bytebuddy.implementation.MethodDelegation.ImplementationDelegate
FIELD_NAME_PREFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForStaticMethod(java.util.List<MethodDelegationBinder.Record> records)Creates a new implementation delegate for a static method delegation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDelegation.ImplementationDelegate.Compiledcompile(TypeDescription instrumentedType)Compiles this implementation delegate.protected static MethodDelegation.ImplementationDelegateof(MethodList<?> methods, MethodDelegationBinder methodDelegationBinder)Precompiles a static method delegation for a given list of methods.InstrumentedTypeprepare(InstrumentedType instrumentedType)Prepares a given instrumented type.
-
-
-
Field Detail
-
records
private final java.util.List<MethodDelegationBinder.Record> records
The precompiled records.
-
-
Constructor Detail
-
ForStaticMethod
protected ForStaticMethod(java.util.List<MethodDelegationBinder.Record> records)
Creates a new implementation delegate for a static method delegation.- Parameters:
records- The precompiled record.
-
-
Method Detail
-
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
public InstrumentedType prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.- Specified by:
preparein interfaceInstrumentedType.Prepareable- Parameters:
instrumentedType- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
compile
public MethodDelegation.ImplementationDelegate.Compiled compile(TypeDescription instrumentedType)
Compiles this implementation delegate.- Specified by:
compilein interfaceMethodDelegation.ImplementationDelegate- Parameters:
instrumentedType- The instrumented type.- Returns:
- A compiled implementation delegate.
-
-