Annotation Type 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.

  • Element Details

    • index

      int index
      The 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

      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:
      STATIC