public class JRequiresDirective extends JModuleDirective
requires
directive.
For example "requires foo.bar;"
or "requires public foo.baz;"
.JModuleDirective.Type
name
Modifier and Type | Method and Description |
---|---|
JFormatter |
generate(JFormatter f)
Print source code of this module directive.
|
protected void |
generateModifiers(JFormatter f)
Print source code of
requires module directive modifiers:
public and static keywords for module dependency. |
JModuleDirective.Type |
getType()
Gets the type of this module directive.
|
equals, hashCode, name
public JModuleDirective.Type getType()
getType
in class JModuleDirective
Type.RequiresDirective
.protected void generateModifiers(JFormatter f)
requires
module directive modifiers:
public
and static
keywords for module dependency.f
- Java code formatter.public JFormatter generate(JFormatter f)
generate
in class JModuleDirective
f
- Java code formatter.Copyright © 2019 JBoss by Red Hat. All rights reserved.