JShell.Builder (Java SE 15 & JDK 15) (original) (raw)

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 thebuild() 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 useJShell.builder().build() or the short-cut equivalentJShell.create().

Methods declared in class java.lang.Object

[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)