Module jdk.jshell
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:
- Tool Guides:
- jshell
- Since:
- 9
Packages
ExportsPackageDescriptionProvides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.Provides implementation support for building JShell execution engines.Defines the Service Provider Interface for pluggable JShell execution engines.Provides a mechanism to launch an instance of a Java shell tool.Indirect ExportsModules
RequiresModifierModuleDescriptiontransitiveDefines the Language Model, Annotation Processing, and Java Compiler APIs.transitiveDefines the Preferences API.transitiveDefines the Java Debug Interface.Services
ProvidesTypeDescriptionThe provider used by JShell to generate the execution engine needed to evaluate Snippets.Common interface for tools that can be invoked from a program.UsesTypeDescriptionThe provider used by JShell to generate the execution engine needed to evaluate Snippets.