Interface MethodDelegationBinder.MethodBinding

    • Method Detail

      • getTargetParameterIndex

        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 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.
        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