Package org.oddjob.script
Interface InvokerArguments
- All Known Implementing Classes:
ConvertableArguments
public interface InvokerArguments
Arguments for passing to an
Invoker.- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescription<T> TgetArgument(int index, Class<T> type) Get the argument.intsize()The number of arguments.
-
Method Details
-
size
int size()The number of arguments.- Returns:
- The number, 0 or greater.
-
getArgument
Get the argument.- Parameters:
index- The 0 based index of the argument.type- The type the argument should be.- Returns:
- An argument of the correct type. May be null.
- Throws:
ArooaConversionException- If an argument of the correct type can not be provided.
-