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 Type
    Method
    Description
    void
    Invoked whenever a new source is executed.
  • Method Details

    • onExecute

      void onExecute(ExecuteSourceEvent event)
      Invoked whenever a new 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.

      Parameters:
      event - an event with context information
      Since:
      0.33