Annotation Type Advice.AssignReturned.ToFields.ToField

Enclosing class:
Advice.AssignReturned.ToFields

@Target({}) @Enhance(ToFields.class) public static @interface Advice.AssignReturned.ToFields.ToField
Determines what fields are assigned when using a Advice.AssignReturned.ToFields annotation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The field's declaring type or void if the type should be found within the instrumented type's hierarchy.
    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.
    The accessed field's name or an empty string if the field name should be inferred from the method's accessor name.
  • Element Details

    • value

      String value
      The accessed field's name or an empty string if the field name should be inferred from the method's accessor name.
      Returns:
      The accessed field's name or an empty string if the field name should be inferred from the method's accessor name.
      Default:
      ""
    • declaringType

      Class<?> declaringType
      The field's declaring type or void if the type should be found within the instrumented type's hierarchy.
      Returns:
      The field's declaring type or void if the type should be found within the instrumented type's hierarchy.
      Default:
      void.class
    • 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