createInvocation(Method method, Object[] args) Factory method that creates
Invocation instance according to input
arguments
Parameters: method - method represented by the Invocation instance returned as a result of this factory method call Parameters: args - invocation arguments to be passed to the method when Invocation.execute() method is invoked on the Invocation instance.
getArgument(int index) Returns single invocation argument for this
Invocation instance that
is stored in the invocation arguments array at position determined by
index argument.
Method returns
String representation of arguments stored in the
Invocation instance.
String representation of arguments stored in the Invocation instance.
Factory method that creates
Invocation instance according to input
arguments
Parameters: method - method represented by the Invocation instance returned as a result of this factory method call Parameters: args - invocation arguments to be passed to the method when Invocation.execute() method is invoked on the Invocation instance. the Invocation instance representing invocation of method defined by value of method argument.
Returns single invocation argument for this
Invocation instance that
is stored in the invocation arguments array at position determined by
index argument.
single invocation argument for this Invocation instance at position determined by index argument throws: ArrayIndexOutOfBoundsException - if there are no arguments in the arrayor if the index parameter is out of bounds of invocation arguments array