public static class MethodDelegation.ImplementationDelegate.Compiled.ForField extends Object implements MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction, MethodDelegation.ImplementationDelegate.Compiled.ForField, MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
Modifier | Constructor and Description |
---|---|
protected |
ForField(FieldDescription fieldDescription,
List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a field delegation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
List<MethodDelegationBinder.Record> |
getRecords()
Returns a list of binding records to consider for delegation.
|
int |
hashCode() |
MethodDelegationBinder.MethodInvoker |
invoke()
Resolves an invoker to use for invoking the delegation target.
|
StackManipulation |
prepare(MethodDescription instrumentedMethod)
Resolves a stack manipulation that prepares the delegation invocation.
|
String |
toString() |
protected ForField(FieldDescription fieldDescription, List<MethodDelegationBinder.Record> records)
fieldDescription
- The field to delegate to.records
- The records to consider for delegation.public StackManipulation prepare(MethodDescription instrumentedMethod)
MethodDelegation.ImplementationDelegate.Compiled
prepare
in interface MethodDelegation.ImplementationDelegate.Compiled
instrumentedMethod
- The instrumented method.public MethodDelegationBinder.MethodInvoker invoke()
MethodDelegation.ImplementationDelegate.Compiled
invoke
in interface MethodDelegation.ImplementationDelegate.Compiled
public List<MethodDelegationBinder.Record> getRecords()
MethodDelegation.ImplementationDelegate.Compiled
getRecords
in interface MethodDelegation.ImplementationDelegate.Compiled
Copyright © 2014–2017. All rights reserved.