Interface MethodDelegationBinder.MethodBinding
- All Superinterfaces:
StackManipulation
- All Known Implementing Classes:
MethodDelegationBinder.MethodBinding.Builder.Build
,MethodDelegationBinder.MethodBinding.Illegal
- Enclosing interface:
- MethodDelegationBinder
A binding attempt created by a
MethodDelegationBinder
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A mutable builder that allows to compose aMethodDelegationBinder.MethodBinding
by adding parameter bindings incrementally.static enum
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.AbstractBase, StackManipulation.Compound, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial
-
Method Summary
Modifier and TypeMethodDescriptionReturns the target method of the method binding attempt.getTargetParameterIndex
(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 Details
-
getTargetParameterIndex
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
-