Interface MethodParametersAccessor
-
public interface MethodParametersAccessor
Accessor interface to method parameters during the actual invocation.- Since:
- 5.0
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getBindableValue(int index)
Returns the bindable value with the given index.int
getParameterCount()
boolean
isBindableNullValue(int index)
Returntrue
if the parameter atindex
is a bindablenull
value that requires anull
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 Detail
-
getParameterCount
int getParameterCount()
- Returns:
- number of parameters.
-
getBindableValue
Object getBindableValue(int index)
Returns the bindable value with the given index. Bindable means, thatTimeout
values are skipped without noticed in the index. For a method signature takingString
,Timeout
,String
,#getBindableParameter(1)
would return the secondString
value.- Parameters:
index
- parameter index.- Returns:
- the bindable value.
-
isKey
boolean isKey(int index)
- Parameters:
index
- parameter index.- Returns:
true
if the parameter atindex
is a key.
-
isValue
boolean isValue(int index)
- Parameters:
index
- parameter index.- Returns:
true
if the parameter atindex
is a value.
-
iterator
Iterator<Object> iterator()
Returns an iterator over all bindable parameters. This means parameters assignable toTimeout
will not be included in thisIterator
.- Returns:
-
resolveParameterIndex
int resolveParameterIndex(String name)
Resolve a parameter name to its index.- Parameters:
name
- the name.- Returns:
-
isBindableNullValue
boolean isBindableNullValue(int index)
Returntrue
if the parameter atindex
is a bindablenull
value that requires anull
value instead of being skipped.- Parameters:
index
- parameter index.- Returns:
true
if the parameter atindex
is a bindablenull
value that requires anull
value instead of being skipped.
-
-