Module jdk.jshell


modulejdk.jshell
Provides thejshell tool for evaluating snippets of Java code, and defines a JDK-specific API for modeling and executing snippets. The JShell API supports Java Programming Language 'snippet' evaluating tools, such as Read-Eval-Print Loops (REPLs). Separate packages support building tools, configuring the execution of tools, and programmatically launching the existing Java shell tool.

Thejdk.jshell is the package for creating 'snippet' evaluating tools. Generally, this is the only package that would be needed for creating tools.

Thejdk.jshell.spi package specifies a Service Provider Interface (SPI) for defining execution engine implementations for tools based on thejdk.jshell API. Thejdk.jshell.execution package provides standard implementations ofjdk.jshell.spi interfaces and supporting code. It also serves as a library of functionality for defining new execution engine implementations.

Thejdk.jshell.tool package supports programmatically launching thejshell tool.

Thejdk.jshell.execution package contains implementations of the interfaces injdk.jshell.spi. Otherwise, the four packages are independent, operate at different levels, and do not share functionality or definitions.

Module Graph:
Module graph for jdk.jshellModule graph for jdk.jshell
Tool Guides:
jshell
Since:
9