public interface LoadSourceSectionListener
Instrumenter
to specific locations of a guest language program
to listen to sources section load events.Modifier and Type | Method and Description |
---|---|
void |
onLoad(LoadSourceSectionEvent event)
Invoked whenever a new
source section is loaded. |
void onLoad(LoadSourceSectionEvent event)
source 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
are
attached
.
Implementation Note: Source load events are notified when the guest language
implementation uses a new source
by invoking RootNode.getCallTarget()
with a root node that uses a 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