@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegation.ImplementationDelegate.ForStaticMethod extends Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethod
InstrumentedType.Prepareable.NoOp
FIELD_NAME_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
ForStaticMethod(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.
|
protected ForStaticMethod(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.Prepareable
instrumentedType
- The instrumented type in its current form.public MethodDelegation.ImplementationDelegate.Compiled compile(TypeDescription instrumentedType)
compile
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- The instrumented type.Copyright © 2014–2024. All rights reserved.