Interface LoadSourceListener
public interface LoadSourceListener
A listener attached by an
Instrumenter to specific locations of a guest language program
to listen to load source events.- Since:
- 0.15
-
Method Summary
Modifier and TypeMethodDescriptionvoidonLoad(LoadSourceEvent event) Invoked whenever a newsourceis loaded.
-
Method Details
-
onLoad
Invoked whenever a newsourceis loaded. The order in which multiple source event listeners are notified matches the order they areattached.Implementation Note: Source load events are notified when the guest language implementation uses a new
sourceby invokingRootNode.getCallTarget()with a root node that uses a 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.15
-