Interface MethodParametersAccessor


  • public interface MethodParametersAccessor
    Accessor interface to method parameters during the actual invocation.
    Since:
    5.0
    Author:
    Mark Paluch
    • Method Detail

      • getParameterCount

        int getParameterCount()
        Returns:
        number of parameters.
      • getBindableValue

        Object getBindableValue​(int index)
        Returns the bindable value with the given index. Bindable means, that Timeout values are skipped without noticed in the index. For a method signature taking String, Timeout , String, #getBindableParameter(1) would return the second String value.
        Parameters:
        index - parameter index.
        Returns:
        the bindable value.
      • isKey

        boolean isKey​(int index)
        Parameters:
        index - parameter index.
        Returns:
        true if the parameter at index is a key.
      • isValue

        boolean isValue​(int index)
        Parameters:
        index - parameter index.
        Returns:
        true if the parameter at index is a value.
      • iterator

        Iterator<Object> iterator()
        Returns an iterator over all bindable parameters. This means parameters assignable to Timeout will not be included in this Iterator.
        Returns:
      • resolveParameterIndex

        int resolveParameterIndex​(String name)
        Resolve a parameter name to its index.
        Parameters:
        name - the name.
        Returns:
      • isBindableNullValue

        boolean isBindableNullValue​(int index)
        Return true if the parameter at index is a bindable null value that requires a null value instead of being skipped.
        Parameters:
        index - parameter index.
        Returns:
        true if the parameter at index is a bindable null value that requires a null value instead of being skipped.