previous      content      next
Callback method parameter annotation @OnEnterResult

Callback parameter annotated with @OnEnterResult will be assigned with a value returned from onEnter() defined in the same probe class. This approach enables effective way of data transfer between method enter and exit callbacks (the value is stored in the stack).

In which callbacks can be used

Parameter annotated with @OnEnterResult can be used in onReturn(), onUncaughtException() and onUncaughtExceptionExt(), and only if the probe class has non-void onEnter() defined.

Declaration type

Parameter annotated with @OnEnterResult must be declared with the same type as the return type of onEnter(). If onEnter() is declared void, @OnEnterResult cannot be used.

previous      content      next