public interface ArgumentProcessorContext
Allows accessing method arguments and applying argument processors.
Modifier and Type | Method and Description |
---|---|
void |
apply(java.lang.Class<?> argumentProcessorClass,
ArgumentProcessorMode mode)
Applies given argument processor to method arguments, either at call-site
or within an invoked method.
|
java.lang.Object[] |
getArgs(ArgumentProcessorMode mode)
Returns an object array containing the method arguments.
|
java.lang.Object |
getReceiver(ArgumentProcessorMode mode)
Returns the receiver of the method invocation or
null for static
methods. |
void apply(java.lang.Class<?> argumentProcessorClass, ArgumentProcessorMode mode)
argumentProcessorClass
- argument processor class to applymode
- where to apply the argument processor.java.lang.Object getReceiver(ArgumentProcessorMode mode)
null
for static
methods.mode
- for which should be the object retrievedjava.lang.Object[] getArgs(ArgumentProcessorMode mode)
mode
- for which should be the argument array retrieved