public abstract class Args
extends java.lang.Object
ModifyArgs callbacks. See the
documentation for ModifyArgs for details. Synthetic subclasses are
generated at runtime for specific injectors.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
values
Argument values
|
| Modifier | Constructor and Description |
|---|---|
protected |
Args(java.lang.Object[] values)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(int index)
Retrieve the argument value at the specified index
|
abstract <T> void |
set(int index,
T value)
Set (modify) the specified argument value.
|
abstract void |
setAll(java.lang.Object... values)
Set (modify) all argument values.
|
int |
size()
Return the argument list size.
|
protected Args(java.lang.Object[] values)
values - argument valuespublic int size()
public <T> T get(int index)
T - the argument typeindex - argument index to retrievejava.lang.ArrayIndexOutOfBoundsException - if a value outside the range of
available arguments is accessedpublic abstract <T> void set(int index,
T value)
T - Argument typeindex - Argument index to setvalue - Argument valueArgumentIndexOutOfBoundsException - if the specified argument index
is outside the range of available argumentspublic abstract void setAll(java.lang.Object... values)
set(int, Object) for details.values - Argument values to set