Package net.bytebuddy.asm
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 ElementsModifier and TypeOptional ElementDescriptionClass
<?> The field's declaring type orvoid
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 valueThe 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<?> declaringTypeThe field's declaring type orvoid
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 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
-