Serializable
, Comparable<ModuleDescriptor.Modifier>
public static enum ModuleDescriptor.Modifier extends Enum<ModuleDescriptor.Modifier>
ModuleDescriptor.modifiers()
Enum Constant | Description |
---|---|
AUTOMATIC |
An automatic module.
|
MANDATED |
The module was implicitly declared.
|
OPEN |
An open module.
|
SYNTHETIC |
The module was not explicitly or implicitly declared.
|
Modifier and Type | Method | Description |
---|---|---|
static ModuleDescriptor.Modifier |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ModuleDescriptor.Modifier[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleDescriptor.Modifier OPEN
public static final ModuleDescriptor.Modifier AUTOMATIC
module-info.class
).public static final ModuleDescriptor.Modifier SYNTHETIC
public static final ModuleDescriptor.Modifier MANDATED
public static ModuleDescriptor.Modifier[] values()
for (ModuleDescriptor.Modifier c : ModuleDescriptor.Modifier.values()) System.out.println(c);
public static ModuleDescriptor.Modifier 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 null Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps