Module jdk.jshell
Package jdk.jshell

Class JShell.Builder

java.lang.Object
jdk.jshell.JShell.Builder
Enclosing class:
JShell

public static class JShell.Builder extends Object
Builder for JShell instances. Create custom instances of JShell by using the setter methods on this class. After zero or more of these, use the build() method to create a JShell instance. These can all be chained. For example, setting the remote output and error streams:
 
     JShell myShell =
       JShell.builder()
         .out(myOutStream)
         .err(myErrStream)
         .build();  
If no special set-up is needed, just use JShell.builder().build() or the short-cut equivalent JShell.create().