@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegation.ImplementationDelegate.Compiled.ForConstruction extends Object implements MethodDelegation.ImplementationDelegate.Compiled
MethodDelegation.ImplementationDelegate.Compiled.ForConstruction, MethodDelegation.ImplementationDelegate.Compiled.ForField, MethodDelegation.ImplementationDelegate.Compiled.ForMethodReturn, MethodDelegation.ImplementationDelegate.Compiled.ForStaticCall
Modifier | Constructor and Description |
---|---|
protected |
ForConstruction(TypeDescription typeDescription,
List<MethodDelegationBinder.Record> records)
Creates a new compiled implementation delegate for a constructor delegation.
|
Modifier and Type | Method and Description |
---|---|
List<MethodDelegationBinder.Record> |
getRecords()
Returns a list of binding records to consider for delegation.
|
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.
|
protected ForConstruction(TypeDescription typeDescription, List<MethodDelegationBinder.Record> records)
typeDescription
- The type to be constructed.records
- The records to consider for delegation.public StackManipulation prepare(MethodDescription instrumentedMethod)
prepare
in interface MethodDelegation.ImplementationDelegate.Compiled
instrumentedMethod
- The instrumented method.public MethodDelegationBinder.MethodInvoker invoke()
invoke
in interface MethodDelegation.ImplementationDelegate.Compiled
public List<MethodDelegationBinder.Record> getRecords()
getRecords
in interface MethodDelegation.ImplementationDelegate.Compiled
Copyright © 2014–2020. All rights reserved.