Package com.oracle.truffle.api.debug
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 Summary
Modifier and TypeMethodDescriptionvoid
contextClosed
(DebugContext context) Notifies about close of a polyglot context.void
contextCreated
(DebugContext context) Notifies about creation of a new polyglot context.void
languageContextCreated
(DebugContext context, LanguageInfo language) Notifies about creation of a language-specific context in an existing polyglot context.void
languageContextDisposed
(DebugContext context, LanguageInfo language) Notifies about disposal of a language-specific context in an existing polyglot context.void
languageContextFinalized
(DebugContext context, LanguageInfo language) Notifies about finalization of a language-specific context in an existing polyglot context.void
languageContextInitialized
(DebugContext context, LanguageInfo language) Notifies about initialization of a language-specific context in an existing polyglot context.
-
Method Details
-
contextCreated
Notifies about creation of a new polyglot context.- Since:
- 0.30
-
languageContextCreated
Notifies about creation of a language-specific context in an existing polyglot context.- Parameters:
context
- the polyglot contextlanguage
- the language for which a language-specific context was created- Since:
- 0.30
-
languageContextInitialized
Notifies about initialization of a language-specific context in an existing polyglot context.- Parameters:
context
- the polyglot contextlanguage
- the language for which a language-specific context was initialized- Since:
- 0.30
-
languageContextFinalized
Notifies about finalization of a language-specific context in an existing polyglot context.- Parameters:
context
- the polyglot contextlanguage
- the language for which a language-specific context was finalized- Since:
- 0.30
-
languageContextDisposed
Notifies about disposal of a language-specific context in an existing polyglot context.- Parameters:
context
- the polyglot contextlanguage
- the language for which a language-specific context was disposed- Since:
- 0.30
-
contextClosed
Notifies about close of a polyglot context.- Since:
- 0.30
-