public class ImportSnippet extends PersistentSnippet
Snippet.Kind.IMPORT
.
ImportSnippet
is immutable: an access to
any of its methods will always return the same result.
and thus is thread-safe.
Snippet.Kind, Snippet.Status, Snippet.SubKind
Modifier and Type | Method and Description |
---|---|
String |
fullname()
The qualified name of the import.
|
boolean |
isStatic()
Indicates whether this snippet represents a static import.
|
String |
name()
The identifying name of the import.
|
public String name()
Snippet.SubKind.TYPE_IMPORT_ON_DEMAND_SUBKIND
or
(Snippet.SubKind.STATIC_IMPORT_ON_DEMAND_SUBKIND
)
that is the full specifier including any
qualifiers and the asterisks. For single imports
(Snippet.SubKind.SINGLE_TYPE_IMPORT_SUBKIND
or
(Snippet.SubKind.SINGLE_STATIC_IMPORT_SUBKIND
),
it is the imported name. That is, the unqualified name.name
in class PersistentSnippet
public String fullname()
Snippet.SubKind.TYPE_IMPORT_ON_DEMAND_SUBKIND
,
(Snippet.SubKind.STATIC_IMPORT_ON_DEMAND_SUBKIND
),
(Snippet.SubKind.SINGLE_TYPE_IMPORT_SUBKIND
or
(Snippet.SubKind.SINGLE_STATIC_IMPORT_SUBKIND
)
that is the full specifier including any
qualifiers and the asterisks.public boolean isStatic()
true
if this snippet represents a static import;
otherwise false
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-10-220919.robert.dev