@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegation.ImplementationDelegate.ForStaticMethod extends java.lang.Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethod| Modifier and Type | Field and Description |
|---|---|
private java.util.List<MethodDelegationBinder.Record> |
records
The precompiled records.
|
FIELD_NAME_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
ForStaticMethod(java.util.List<MethodDelegationBinder.Record> records)
Creates a new implementation delegate for a static method delegation.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDelegation.ImplementationDelegate.Compiled |
compile(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.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
private final java.util.List<MethodDelegationBinder.Record> records
protected ForStaticMethod(java.util.List<MethodDelegationBinder.Record> records)
records - The precompiled record.protected static MethodDelegation.ImplementationDelegate of(MethodList<?> methods, MethodDelegationBinder methodDelegationBinder)
methods - The methods to consider.methodDelegationBinder - The method delegation binder to use.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.public MethodDelegation.ImplementationDelegate.Compiled compile(TypeDescription instrumentedType)
compile in interface MethodDelegation.ImplementationDelegateinstrumentedType - The instrumented type.