public abstract class JModuleDirective extends Object
"exports foo.bar;"
or "requires foo.baz;"
.Modifier and Type | Class and Description |
---|---|
static class |
JModuleDirective.Type
Module directive type.
|
Modifier and Type | Field and Description |
---|---|
protected String |
name
Name argument of module directive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
name()
Gets the name of this module directive.
|
protected final String name
public abstract JModuleDirective.Type getType()
null
.public abstract JFormatter generate(JFormatter f)
f
- Java code formatter.public boolean equals(Object other)
equals
in class Object
other
- 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()
using97 * (type_ordinal_value + 1) + name.hashCode()
int
arithmetic.public String name()
Copyright © 2019 JBoss by Red Hat. All rights reserved.