Annotation Type Advice.AssignReturned.ToThis

Enclosing class:
Advice.AssignReturned

@Documented @Retention(RUNTIME) @Target(METHOD) public static @interface Advice.AssignReturned.ToThis

Assigns the advice method's return value to the this reference of the instrumented method.

Important: This annotation has no effect unless an Advice.AssignReturned post processor is explicitly registered.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A handler for the Advice.AssignReturned.ToThis annotation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    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 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