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 ObjectgetBindableValue(int index)Returns the bindable value with the given index.intgetParameterCount()booleanisBindableNullValue(int index)Returntrueif the parameter atindexis a bindablenullvalue that requires anullvalue instead of being skipped.booleanisKey(int index)booleanisValue(int index)Iterator<Object>iterator()Returns an iterator over all bindable parameters.intresolveParameterIndex(String name)Resolve a parameter name to its index.
-
Method Details
-
getParameterCount
int getParameterCount()- Returns:
- number of parameters.
-
getBindableValue
Returns the bindable value with the given index. Bindable means, thatTimeoutvalues are skipped without noticed in the index. For a method signature takingString,Timeout,String,#getBindableParameter(1)would return the secondStringvalue.- Parameters:
index- parameter index.- Returns:
- the bindable value.
-
isKey
boolean isKey(int index)- Parameters:
index- parameter index.- Returns:
trueif the parameter atindexis a key.
-
isValue
boolean isValue(int index)- Parameters:
index- parameter index.- Returns:
trueif the parameter atindexis a value.
-
iterator
Returns an iterator over all bindable parameters. This means parameters assignable toTimeoutwill not be included in thisIterator.- Returns:
-
resolveParameterIndex
Resolve a parameter name to its index.- Parameters:
name- the name.- Returns:
-
isBindableNullValue
boolean isBindableNullValue(int index)Returntrueif the parameter atindexis a bindablenullvalue that requires anullvalue instead of being skipped.- Parameters:
index- parameter index.- Returns:
trueif the parameter atindexis a bindablenullvalue that requires anullvalue instead of being skipped.
-