"exports foo.bar;" or "requires foo.baz;".
| Modifier and Type | Class and Description |
|---|---|
| public static enum | JModuleDirective.
Module directive type. |
| Modifier and Type | Field and Description |
|---|---|
| protected final String | name
Name argument of module directive. |
| Access | Constructor and Description |
|---|---|
| pack-priv | JModuleDirective(final String
name argument of module directive. name)Creates an instance of Java module directive. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the argument is not null
and is a object with the same type
and equal name.The object to compare this against. other)Overrides java. Compares this module directive to the specified object. |
| public abstract JFormatter | Returns: provided instance of Java code formatter.Java code formatter. f)Print source code of this module directive. |
| public abstract JModuleDirective. | Returns: type of this module directive. Will never benull.Gets the type of this module directive. |
| public int | Returns: a hash code value for this object.Overrides java. Returns a hash code for this module directive based on directive type and name. |
| public String |
| name | back to summary |
|---|---|
| protected final String name Name argument of module directive. | |
| JModuleDirective | back to summary |
|---|---|
| pack-priv JModuleDirective(final String name) Creates an instance of Java module directive.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Compares this module directive to the specified object. | |
| generate | back to summary |
|---|---|
| public abstract JFormatter generate(final JFormatter f) Print source code of this module directive.
| |
| getType | back to summary |
|---|---|
| public abstract JModuleDirective. Gets the type of this module directive.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this module directive based on directive type and name. The hash code for a module directive is computed as
using int arithmetic.
| |
| name | back to summary |
|---|---|
| public String name() Gets the name of this module directive.
| |
getType() method which returns corresponding value.
| Modifier and Type | Field and Description |
|---|---|
| public static final JModuleDirective. | ExportsDirective
Directive starting with |
| public static final JModuleDirective. | RequiresDirective
Directive starting with |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JModuleDirective. | |
| public static JModuleDirective. |
| ExportsDirective | back to summary |
|---|---|
| public static final JModuleDirective. Directive starting with | |
| RequiresDirective | back to summary |
|---|---|
| public static final JModuleDirective. Directive starting with | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static JModuleDirective. | |
| values | back to summary |
|---|---|
| public static JModuleDirective. | |