Interface ExecuteSourceListener
public interface ExecuteSourceListener
A listener attached by an
Instrumenter
to specific sources of a guest language program to
listen to execute source events.- Since:
- 0.33
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onExecute
(ExecuteSourceEvent event) Invoked whenever a newsource
is executed.
-
Method Details
-
onExecute
Invoked whenever a newsource
is executed. The order in which multiple source event listeners are notified matches the order they areattached
.Implementation Note: Source execute events are notified when the guest language implementation executes a new
source
by invoking anyRootNode
that uses the new source inNode.getSourceSection()
. It assumes that all nodes of an AST have the samesource
as their root.- Parameters:
event
- an event with context information- Since:
- 0.33
-