Module jdk.jshell

Interface ExecutionControl

All Superinterfaces:
All Known Implementing Classes:
DirectExecutionControl, JdiDefaultExecutionControl, JdiExecutionControl, LocalExecutionControl, RemoteExecutionControl, StreamingExecutionControl

public interface ExecutionControl extends AutoCloseable
This interface specifies the functionality that must provided to implement a pluggable JShell execution engine.

The audience for this Service Provider Interface is engineers wishing to implement their own version of the execution engine in support of the JShell API.

A Snippet is compiled into code wrapped in a 'wrapper class'. The execution engine is used by the core JShell implementation to load and, for executable Snippets, execute the Snippet.

Methods defined in this interface should only be called by the core JShell implementation.