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.
|
Modifier and Type | Method | Description |
---|---|---|
List<SnippetEvent> |
JShell.drop(Snippet snippet) |
Remove a declaration from the state.
|
List<SnippetEvent> |
JShell.eval(String input) |
Evaluate the input String, including definition and/or execution, if
applicable.
|
Modifier and Type | Method | Description |
---|---|---|
JShell.Subscription |
JShell.onSnippetEvent(Consumer<SnippetEvent> listener) |
Register a callback to be called when the Status of a snippet changes.
|
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b153-2