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 TypeMethodDescriptionvoidonExecute(ExecuteSourceEvent event) Invoked whenever a newsourceis executed.
-
Method Details
-
onExecute
Invoked whenever a newsourceis 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
sourceby invoking anyRootNodethat uses the new source inNode.getSourceSection(). It assumes that all nodes of an AST have the samesourceas their root.- Parameters:
event- an event with context information- Since:
- 0.33
-