Module jdk.jshell
Package jdk.jshell

Class ExpressionSnippet

java.lang.Object
jdk.jshell.Snippet
jdk.jshell.ExpressionSnippet

public class ExpressionSnippet extends Snippet
Snippet for an assignment or variable-value expression. The Kind is Snippet.Kind.EXPRESSION.

ExpressionSnippet is immutable: an access to any of its methods will always return the same result. and thus is thread-safe.

See Java Language Specification:
15 Expressions
Since:
9