public interface ExecuteSourceListener
Instrumenter
to specific sources of a guest language program to
listen to execute source events.Modifier and Type | Method and Description |
---|---|
void |
onExecute(ExecuteSourceEvent event)
Invoked whenever a new
source is executed. |
void onExecute(ExecuteSourceEvent event)
source
is executed. The order in which multiple source
event listeners are notified matches the order they are
attached
.
Implementation Note: Source execute events are notified when the guest language
implementation executes a new source
by invoking any RootNode
that
uses the new source in Node.getSourceSection()
. It assumes that all nodes of an AST
have the same source
as their root.
event
- an event with context information