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 classMethodDelegationBinder.MethodBinding.BuilderA mutable builder that allows to compose aMethodDelegationBinder.MethodBindingby adding parameter bindings incrementally.static classMethodDelegationBinder.MethodBinding.IllegalRepresentation 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescriptiongetTarget()Returns the target method of the method binding attempt.java.lang.IntegergetTargetParameterIndex(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
@MaybeNull java.lang.Integer getTargetParameterIndex(java.lang.Object parameterBindingToken)
Returns the target method's parameter index for a given parameter binding token.
A binding token can be any object that implements validObject.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
nullif 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
-
-