JExportsDirective, JRequiresDirectivepublic abstract class JModuleDirective
extends java.lang.Object
"exports foo.bar;" or "requires foo.baz;".| Modifier and Type | Class | Description |
|---|---|---|
static class |
JModuleDirective.Type |
Module directive type.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
name |
Name argument of module directive.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
Compares this module directive to the specified object.
|
abstract JFormatter |
generate(JFormatter f) |
Print source code of this module directive.
|
abstract JModuleDirective.Type |
getType() |
Gets the type of this module directive.
|
int |
hashCode() |
Returns a hash code for this module directive based on directive type and name.
|
java.lang.String |
name() |
Gets the name of this module directive.
|
public abstract JModuleDirective.Type getType()
null.public abstract JFormatter generate(JFormatter f)
f - Java code formatter.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare this JModuleDirective against.true if the argument is not null
and is a JModuleDirective object with the same type
and equal name.public int hashCode()
97 * (type_ordinal_value + 1) + name.hashCode()
using int arithmetic.hashCode in class java.lang.Objectpublic java.lang.String name()
Copyright © 2018 Oracle Corporation. All rights reserved.