Interface LoadSourceSectionListener
public interface LoadSourceSectionListener
A listener attached by an
Instrumenter
to specific locations of a guest language program
to listen to sources section load events.- Since:
- 0.15
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLoad
(LoadSourceSectionEvent event) Invoked whenever a newsource section
is loaded.
-
Method Details
-
onLoad
Invoked whenever a newsource section
is loaded. The listener might be notified for one source section multiple times but never with the same instrumented node. The order in which multiple source section event listeners are notified matches the order they areattached
. Implementation Note: Source load events are notified when the guest language implementation uses a newsource
by invokingRootNode.getCallTarget()
with a root node that uses a 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.15
-