Package net.bytebuddy.asm
Annotation Type Advice.AssignReturned.ToReturned
- Enclosing class:
Advice.AssignReturned
@Documented
@Retention(RUNTIME)
@Target(METHOD)
public static @interface Advice.AssignReturned.ToReturned
Assigns the advice method's return value to the instrumented method's return value. This annotation can only be used
with exit advice marked with Advice.OnMethodExit
.
Important: This annotation has no effect unless an Advice.AssignReturned
post processor is explicitly registered.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A handler for aAdvice.AssignReturned.ToReturned
annotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
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 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
-