Uses of Class jdk.jshell.JShell.Builder (Java SE 26 & JDK 26)
Description: use: module: jdk.jshell, package: jdk.jshell, class: JShell, class: Builder

# Uses of Class
jdk.jshell.JShell.Builder

Packages that use JShell.Builder
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.

- ## Uses of JShell.Builder in jdk.jshell

  Methods in jdk.jshell that return JShell.Builder
  Modifier and Type
  Method
  Description
  `static JShell.Builder`
  JShell.`builder()`
  Factory method for `JShell.Builder` which, in-turn, is used for creating instances of `JShell`.
  `JShell.Builder`
  JShell.Builder.`compilerOptions(String... options)`
  Adds compiler options.
  `JShell.Builder`
  JShell.Builder.`console(JShellConsole console)`
  Sets the console for the running evalution.
  `JShell.Builder`
  JShell.Builder.`err(PrintStream err)`
  Sets the error output for the running evaluation (it's `System.err`).
  `JShell.Builder`
  JShell.Builder.`executionEngine(String executionControlSpec)`
  Sets the custom engine for execution.
  `JShell.Builder`
  JShell.Builder.`executionEngine(ExecutionControlProvider executionControlProvider, Map<String,String> executionControlParameters)`
  Sets the custom engine for execution.
  `JShell.Builder`
  JShell.Builder.`fileManager(Function<StandardJavaFileManager, StandardJavaFileManager> mapping)`
  Configure the `FileManager` to be used by compilation and source analysis.
  `JShell.Builder`
  JShell.Builder.`idGenerator(BiFunction<Snippet,Integer,String> generator)`
  Sets the generator of identifying names for Snippets.
  `JShell.Builder`
  JShell.Builder.`in(InputStream in)`
  Sets the input for the running evaluation (it's `System.in`).
  `JShell.Builder`
  JShell.Builder.`out(PrintStream out)`
  Sets the output for the running evaluation (it's `System.out`).
  `JShell.Builder`
  JShell.Builder.`remoteVMOptions(String... options)`
  Sets additional VM options for launching the VM.
  `JShell.Builder`
  JShell.Builder.`tempVariableNameGenerator(Supplier<String> generator)`
  Sets a generator of temp variable names for `VarSnippet` of `Snippet.SubKind.TEMP_VAR_EXPRESSION_SUBKIND`.