@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public static @interface Advice.AssignReturned.ToAllArguments
Assigns the advice method's return value as an array to a number of arguments which are returned as an array where each element assigns a single value with the same index as the instrumented method's parameter.
Note: If this is the only intended assignment, the return value must either be a nested array or be annotated
with Advice.AssignReturned.AsScalar
to indicate that the advice method's returned value should be treated as a singular return value.
Important: This annotation has no effect unless an Advice.AssignReturned
post processor is explicitly registered.
Modifier and Type | Optional Element and Description |
---|---|
int |
index
The index in the array that is returned which represents the assigned value.
|
Assigner.Typing |
typing
The typing to apply when assigning the returned value to the targeted value.
|
public abstract int index
public abstract Assigner.Typing typing
Copyright © 2014–2024. All rights reserved.