Uses of Class
jdk.jshell.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.BuilderJShell. builder()Factory method forJShell.Builderwhich, in-turn, is used for creating instances ofJShell.JShell.BuilderJShell.Builder. compilerOptions(String... options)Adds compiler options.JShell.BuilderJShell.Builder. err(PrintStream err)Sets the error output for the running evaluation (it'sSystem.err).JShell.BuilderJShell.Builder. executionEngine(String executionControlSpec)Sets the custom engine for execution.JShell.BuilderJShell.Builder. executionEngine(ExecutionControlProvider executionControlProvider, Map<String,String> executionControlParameters)Sets the custom engine for execution.JShell.BuilderJShell.Builder. fileManager(Function<StandardJavaFileManager,StandardJavaFileManager> mapping)Configure theFileManagerto be used by compilation and source analysis.JShell.BuilderJShell.Builder. idGenerator(BiFunction<Snippet,Integer,String> generator)Sets the generator of identifying names for Snippets.JShell.BuilderJShell.Builder. in(InputStream in)Sets the input for the running evaluation (it'sSystem.in).JShell.BuilderJShell.Builder. out(PrintStream out)Sets the output for the running evaluation (it'sSystem.out).JShell.BuilderJShell.Builder. remoteVMOptions(String... options)Sets additional VM options for launching the VM.JShell.BuilderJShell.Builder. tempVariableNameGenerator(Supplier<String> generator)Sets a generator of temp variable names forVarSnippetofSnippet.SubKind.TEMP_VAR_EXPRESSION_SUBKIND.