Interface DebugContextsListener


public interface DebugContextsListener
Listener to be notified about changes of contexts in guest language application.

Use DebuggerSession.setContextsListener(com.oracle.truffle.api.debug.DebugContextsListener, boolean) to register an implementation of this listener.

The listener gets called when a new context is created or disposed and when individual languages are initialized or disposed in that context.

Since:
0.30
See Also:
  • Method Details

    • contextCreated

      void contextCreated(DebugContext context)
      Notifies about creation of a new polyglot context.
      Since:
      0.30
    • languageContextCreated

      void languageContextCreated(DebugContext context, LanguageInfo language)
      Notifies about creation of a language-specific context in an existing polyglot context.
      Parameters:
      context - the polyglot context
      language - the language for which a language-specific context was created
      Since:
      0.30
    • languageContextInitialized

      void languageContextInitialized(DebugContext context, LanguageInfo language)
      Notifies about initialization of a language-specific context in an existing polyglot context.
      Parameters:
      context - the polyglot context
      language - the language for which a language-specific context was initialized
      Since:
      0.30
    • languageContextFinalized

      void languageContextFinalized(DebugContext context, LanguageInfo language)
      Notifies about finalization of a language-specific context in an existing polyglot context.
      Parameters:
      context - the polyglot context
      language - the language for which a language-specific context was finalized
      Since:
      0.30
    • languageContextDisposed

      void languageContextDisposed(DebugContext context, LanguageInfo language)
      Notifies about disposal of a language-specific context in an existing polyglot context.
      Parameters:
      context - the polyglot context
      language - the language for which a language-specific context was disposed
      Since:
      0.30
    • contextClosed

      void contextClosed(DebugContext context)
      Notifies about close of a polyglot context.
      Since:
      0.30