A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/17/docs/api/jdk.jshell/jdk/jshell/JShell.html below:

JShell (Java SE 17 & JDK 17)

All Implemented Interfaces:
AutoCloseable

The JShell evaluation state engine. This is the central class in the JShell API. A

JShell

instance holds the evolving compilation and execution state. The state is changed with the instance methods

eval(String)

,

drop(Snippet)

and

addToClasspath(String)

. The majority of methods query the state. A

JShell

instance also allows registering for events with

onSnippetEvent(Consumer)

and

onShutdown(Consumer)

, which are unregistered with

unsubscribe(Subscription)

. Access to the source analysis utilities is via

sourceCodeAnalysis()

. When complete the instance should be closed to free resources --

close()

.

An instance of JShell is created with JShell.create().

This class is not thread safe, except as noted, all access should be through a single thread.

Since:
9

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4