Module jdk.jshell
Package jdk.jshell

Class ImportSnippet

java.lang.Object

public class ImportSnippet extends PersistentSnippet
Snippet for an import declaration. The Kind is Snippet.Kind.IMPORT.

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

See Java Language Specification:
7.5 Import Declarations
Since:
9