Snippet.SubKind (Java SE 19 & JDK 19) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io"), [Comparable](../../../java.base/java/lang/Comparable.html "interface in java.lang")<[Snippet.SubKind](Snippet.SubKind.html "enum class in jdk.jshell")>, [Constable](../../../java.base/java/lang/constant/Constable.html "interface in java.lang.constant")

Enclosing class:

[Snippet](Snippet.html "class in jdk.jshell")


The detailed variety of a snippet. This is a sub-classification of the Kind. The Kind of a SubKind is accessible withkind().

Enum Constants
An annotation interface declaration.
An assignment expression.
An interface declaration.
An expression which has not been wrapped in a temporary variable (reserved).
Single-Static-Import Declaration.
Single-Type-Import Declaration.
Static-Import-on-Demand Declaration.
An expression whose value has been stored in a temporary variable.
Type-Import-on-Demand Declaration.
A variable declaration without initializer.
A variable declaration with an initializer expression.
A simple variable reference expression.

boolean
[hasValue](#hasValue%28%29)()
Indicates whether this SubKind is executable and is non-void.
boolean
Indicates whether this SubKind is executable.
[kind](#kind%28%29)()
Returns the enum constant of this class with the specified name.
[values](#values%28%29)()
Returns an array containing the constants of this enum class, in the order they are declared.

Methods declared in class java.lang.Enum

[clone](../../../java.base/java/lang/Enum.html#clone%28%29), [compareTo](../../../java.base/java/lang/Enum.html#compareTo%28E%29), [describeConstable](../../../java.base/java/lang/Enum.html#describeConstable%28%29), [equals](../../../java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Enum.html#finalize%28%29), [getDeclaringClass](../../../java.base/java/lang/Enum.html#getDeclaringClass%28%29), [hashCode](../../../java.base/java/lang/Enum.html#hashCode%28%29), [name](../../../java.base/java/lang/Enum.html#name%28%29), [ordinal](../../../java.base/java/lang/Enum.html#ordinal%28%29), [toString](../../../java.base/java/lang/Enum.html#toString%28%29), [valueOf](../../../java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29)