@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public static @interface Advice.AssignReturned.ToThrown
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.
Modifier and Type | Optional Element and Description |
---|---|
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.
|
public abstract int index
public abstract Assigner.Typing typing
Copyright © 2014–2022. All rights reserved.