jdk.jshell is the package for creating 'snippet' evaluating tools.
Generally, this is only package that would be needed for creating tools.
jdk.jshell.spi package specifies a Service Provider Interface (SPI)
for defining execution engine implementations for tools based on the
jdk.jshell API. The
jdk.jshell.execution package provides
standard implementations of
jdk.jshell.spi interfaces and supporting code. It
also serves as a library of functionality for defining new execution engine
jdk.jshell.tool package supports programmatically launching the
jdk.jshell.execution package contains implementations of the
jdk.jshell.spi. Otherwise, the four packages are
independent, operate at different levels, and do not share functionality or
- Module Graph:
- Tool Guides:
Exports Package Description jdk.jshellProvides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code. jdk.jshell.executionProvides implementation support for building JShell execution engines. jdk.jshell.spiDefines the Service Provider Interface for pluggable JShell execution engines. jdk.jshell.toolProvides a mechanism to launch an instance of a Java shell tool.
Uses Type Description ExecutionControlProviderThe provider used by JShell to generate the execution engine needed to evaluate Snippets.