public enum ImportKind extends Enum<ImportKind>
import
declarations.
[JLS3:7.5] Import Declarations
Modifier and Type | Class and Description |
---|---|
static class |
ImportKind.Range
Represents a kind of import scope.
|
static class |
ImportKind.Target
Represents a kind of import target.
|
Enum Constant and Description |
---|
SINGLE_STATIC
Single static import.
|
SINGLE_TYPE
Single type import.
|
STATIC_ON_DEMAND
On-demand static import.
|
TYPE_ON_DEMAND
On-demand type import.
|
Modifier and Type | Method and Description |
---|---|
ImportKind.Range |
getRange()
Returns the import scope kind.
|
ImportKind.Target |
getTarget()
Returns the import target kind.
|
static ImportKind |
valueOf(ImportKind.Target target,
ImportKind.Range range)
Returns the import kind from its target and scope kinds.
|
static ImportKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImportKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImportKind SINGLE_TYPE
[JLS3:7.5.1] Single-Type-Import Declaration
public static final ImportKind TYPE_ON_DEMAND
[JLS3:7.5.2] Type-Import-on-Demand Declaration
public static final ImportKind SINGLE_STATIC
[JLS3:7.5.3] Single Static Import Declaration
public static final ImportKind STATIC_ON_DEMAND
[JLS3:7.5.4] Static-Import-on-Demand Declaration
public static ImportKind[] values()
for (ImportKind c : ImportKind.values()) System.out.println(c);
public static ImportKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ImportKind.Target getTarget()
public ImportKind.Range getRange()
public static ImportKind valueOf(ImportKind.Target target, ImportKind.Range range)
target
- the target kindrange
- the scope kindIllegalArgumentException
- if the parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.