public interface ExecutionEventListener
Instrumenter to specific locations of a guest language program
to listen to execution events.| Modifier and Type | Method and Description |
|---|---|
void |
onEnter(EventContext context,
VirtualFrame frame)
Invoked immediately before the
instrumented node
is executed. |
void |
onReturnExceptional(EventContext context,
VirtualFrame frame,
Throwable exception)
Invoked immediately after an
instrumented node did
not successfully execute. |
void |
onReturnValue(EventContext context,
VirtualFrame frame,
Object result)
Invoked immediately after an
instrumented node is
successfully executed. |
void onEnter(EventContext context, VirtualFrame frame)
instrumented node
is executed. The order in which multiple event listeners are notified matches the order they
are attached
.context - indicating the current location in the guest language ASTframe - the frame that was used for executing instrumented nodevoid onReturnValue(EventContext context, VirtualFrame frame, Object result)
instrumented node is
successfully executed. The order in which multiple event listeners are notified matches the
order they are
attached.context - indicating the current location in the guest language ASTframe - the frame that was used for executing instrumented nodevoid onReturnExceptional(EventContext context, VirtualFrame frame, Throwable exception)
instrumented node did
not successfully execute. The order in which multiple event listeners are notified matches
the order they are
attached.context - indicating the current location in the guest language ASTframe - the frame that was used for executing instrumented node