Package net.bytebuddy.asm
Annotation Type Advice.AssignReturned.ToAllArguments
-
@Documented @Retention(RUNTIME) @Target(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.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element 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.
-
-
-
-
typing
Assigner.Typing typing
The typing to apply when assigning the returned value to the targeted value.- Returns:
- The typing to apply when assigning the returned value to the targeted value.
- Default:
- net.bytebuddy.implementation.bytecode.assign.Assigner.Typing.STATIC
-
-