Package net.bytebuddy.asm
Annotation Interface Advice.AssignReturned.ToAllArguments
- Enclosing class:
Advice.AssignReturned
@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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A handler for aAdvice.AssignReturned.ToAllArguments
annotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
The index in the array that is returned which represents the assigned value.The typing to apply when assigning the returned value to the targeted value.
-
Element Details
-
index
int indexThe index in the array that is returned which represents the assigned value. If negative, a scalar return value is expected.- Returns:
- The index in the array that is returned which represents the assigned value.
- Default:
-1
-
typing
Assigner.Typing typingThe 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:
STATIC
-