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/Snippet.Kind.html below:

Snippet.Kind (Java SE 17 & JDK 17)

All Implemented Interfaces:
Serializable, Comparable<Snippet.Kind>, Constable
Enclosing class:
Snippet

Describes the general kind of snippet. The

Kind

is an immutable property of a Snippet. It is accessed with

Snippet.kind()

. The

Kind

can be used to determine which subclass of Snippet it is. For example,

eval("int three() { return 3; }")

will return a snippet creation event. The

Kind

of that Snippet will be

METHOD

, from which you know that the subclass of

Snippet

is

MethodSnippet

and it can be cast as such.


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