onExit

abstract fun onExit(key: String, self: Any, args: Array<Any>, returned: Any, thrown: Throwable)

Called as the patched method leaves.

Parameters

key

the patch key that fired

self

the receiver of the patched method (null for static methods)

args

the arguments as they reached this patch, boxed. A reassignment inside the body does not show here; a change to an argument object does

returned

the return value, boxed; null for void methods, and meaningless when thrown is non-null (a throwing method has no return value)

thrown

the exception leaving the method, or null on a normal return