Module lettuce.core

Interface MethodParametersAccessor


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

    Modifier and Type Method Description
    Object getBindableValue​(int index)
    Returns the bindable value with the given index.
    int getParameterCount()  
    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.
    boolean isKey​(int index)  
    boolean isValue​(int index)  
    Iterator<Object> iterator()
    Returns an iterator over all bindable parameters.
    int resolveParameterIndex​(String name)
    Resolve a parameter name to its index.
  • Method Details

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