Module jdk.jshell
Package jdk.jshell

Class ImportSnippet


  • 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.

    Since:
    9
    See The Java™ Language Specification:
    8.3: importDeclaration.