Uses of Package jdk.jshell (Java SE 26 & JDK 26)
Description: use: module: jdk.jshell, package: jdk.jshell

# Uses of Package
jdk.jshell

Packages that use jdk.jshell
Package
Description
jdk.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
jdk.jshell.spi
Defines the Service Provider Interface for pluggable JShell execution engines.

- Classes in jdk.jshell used by jdk.jshell
  Class
  Description
  DeclarationSnippet
  Grouping for all declaration Snippets: variable declarations (`VarSnippet`), method declarations (`MethodSnippet`), and type declarations (`TypeDeclSnippet`).
  Diag
  Diagnostic information for a Snippet.
  ImportSnippet
  Snippet for an import declaration.
  JShell
  The JShell evaluation state engine.
  JShell.Builder
  Builder for `JShell` instances.
  JShell.Subscription
  Subscription is a token for referring to subscriptions so they can be unsubscribed.
  JShellConsole
  An interface providing functionality for `Console` in the user's snippet.
  JShellException
  The superclass of JShell generated exceptions
  MethodSnippet
  Snippet for a method definition.
  PersistentSnippet
  Grouping for Snippets which persist and influence future code.
  Snippet
  A Snippet represents a snippet of Java source code as passed to `JShell.eval(java.lang.String)`.
  Snippet.Kind
  Describes the general kind of snippet.
  Snippet.Status
  Describes the current state of a Snippet.
  Snippet.SubKind
  The detailed variety of a snippet.
  SnippetEvent
  A description of a change to a Snippet.
  SourceCodeAnalysis
  Provides analysis utilities for source code input.
  SourceCodeAnalysis.Attribute
  A span attribute which can be used to derive a coloring.
  SourceCodeAnalysis.Completeness
  Describes the completeness of the given input.
  SourceCodeAnalysis.CompletionContext
  Various flags describing the context in which the completion happens.
  SourceCodeAnalysis.CompletionInfo
  The result of `analyzeCompletion(String input)`.
  SourceCodeAnalysis.CompletionState
  Permit access to completion state.
  SourceCodeAnalysis.Documentation
  A documentation for a candidate for continuation of the given user's input.
  SourceCodeAnalysis.ElementSuggestion
  A description of an Element that is a possible continuation of a given snippet.
  SourceCodeAnalysis.ElementSuggestionConvertor
  A convertor from a list of SourceCodeAnalysis.ElementSuggestion to a list of custom target completion items.
  SourceCodeAnalysis.Highlight
  Assigns attributes usable for coloring to spans inside a snippet.
  SourceCodeAnalysis.QualifiedNames
  List of possible qualified names.
  SourceCodeAnalysis.SnippetWrapper
  The wrapping of a snippet of Java source into valid top-level Java source.
  SourceCodeAnalysis.Suggestion
  A candidate for continuation of the given user's input.
  TypeDeclSnippet
  Snippet for a type definition (a class, interface, enum, or annotation interface definition).
  VarSnippet
  Snippet for a variable definition.
- Classes in jdk.jshell used by jdk.jshell.spi
  Class
  Description
  JShellConsole
  An interface providing functionality for `Console` in the user's snippet.