Annotation Type Advice.AssignReturned.ToFields.ToField

    • Optional Element Summary

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

      • value

        java.lang.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

        java.lang.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

        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