public interface ExecutionEnv
This interface is designed to provide the access to core JShell functionality needed to implement ExecutionControl.
Modifier and Type | Method | Description |
---|---|---|
void |
closeDown() |
Reports that the execution engine has shutdown. |
default Optional |
console() |
Returns the JShellConsole that should be used by the execution engine, or null if none. |
List |
extraRemoteVMOptions() |
Returns the additional VM options to be used when launching the remote JVM. |
PrintStream |
userErr() |
Returns the user's error stream. |
InputStream |
userIn() |
Returns the user's input stream. |
PrintStream |
userOut() |
Returns the user's output stream. |
InputStream userIn()
PrintStream userOut()
PrintStream userErr()
List<String> extraRemoteVMOptions()
Note: an execution engine need not launch a remote JVM.
void closeDown()
default Optional<JShellConsole> console()
JShellConsole
that should be used by the execution engine, or null
if none. Note: an execution engine may not support JShellConsole
.
Optional
.Optional
if none, never null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jshell/jdk/jshell/spi/ExecutionEnv.html