Interface MethodDelegationBinder.MethodBinding
-
- All Superinterfaces:
StackManipulation
- All Known Implementing Classes:
MethodDelegationBinder.MethodBinding.Builder.Build
,MethodDelegationBinder.MethodBinding.Illegal
- Enclosing interface:
- MethodDelegationBinder
public static interface MethodDelegationBinder.MethodBinding extends StackManipulation
A binding attempt created by aMethodDelegationBinder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodDelegationBinder.MethodBinding.Builder
A mutable builder that allows to compose aMethodDelegationBinder.MethodBinding
by adding parameter bindings incrementally.static class
MethodDelegationBinder.MethodBinding.Illegal
Representation of an attempt to bind a source method to a target method that is not applicable.-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
StackManipulation.Compound, StackManipulation.Size, StackManipulation.Trivial
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescription
getTarget()
Returns the target method of the method binding attempt.java.lang.Integer
getTargetParameterIndex(java.lang.Object parameterBindingToken)
Returns the target method's parameter index for a given parameter binding token.-
Methods inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
apply, isValid
-
-
-
-
Method Detail
-
getTargetParameterIndex
java.lang.Integer getTargetParameterIndex(java.lang.Object parameterBindingToken)
Returns the target method's parameter index for a given parameter binding token.Object.hashCode()
andObject.equals(Object)
methods in order to look up a given binding. This way, two bindings can be evaluated of having performed a similar type of binding such that these bindings can be compared and a dominant binding can be identified by anMethodDelegationBinder.AmbiguityResolver
. Furthermore, a binding is implicitly required to insure the uniqueness of such a parameter binding.- Parameters:
parameterBindingToken
- A token which is used to identify a specific unique binding for a given parameter of the target method.- Returns:
- The target method's parameter index of this binding or
null
if no such argument binding was applied for this binding.
-
getTarget
MethodDescription getTarget()
Returns the target method of the method binding attempt.- Returns:
- The target method to which the
-
-