public static interface MethodDelegationBinder.MethodBinding extends StackManipulation
MethodDelegationBinder.| Modifier and Type | Interface and Description |
|---|---|
static class |
MethodDelegationBinder.MethodBinding.Builder
A mutable builder that allows to compose a
MethodDelegationBinder.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.
|
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
getTarget()
Returns the target method of the method binding attempt.
|
Integer |
getTargetParameterIndex(Object parameterBindingToken)
Returns the target method's parameter index for a given parameter binding token.
|
apply, isValid@MaybeNull Integer getTargetParameterIndex(Object parameterBindingToken)
A binding token can be any object that implements valid
Object.hashCode() and Object.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 an
MethodDelegationBinder.AmbiguityResolver.
Furthermore, a binding is implicitly required to insure the uniqueness of such a parameter binding.parameterBindingToken - A token which is used to identify a specific unique binding for a given parameter
of the target method.null if no such argument binding
was applied for this binding.MethodDescription getTarget()
Copyright © 2014–2023. All rights reserved.