- java.lang.Object
-
- com.sun.codemodel.JModuleDirective
-
- com.sun.codemodel.JExportsDirective
-
public class JExportsDirective extends JModuleDirective
Represents a Java moduleexportsdirective. For example"exports foo.bar;".- Author:
- Tomas Kraus
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.codemodel.JModuleDirective
JModuleDirective.Type
-
-
Field Summary
-
Fields inherited from class com.sun.codemodel.JModuleDirective
name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JFormattergenerate(JFormatter f)Print source code of this module directive.JModuleDirective.TypegetType()Gets the type of this module directive.-
Methods inherited from class com.sun.codemodel.JModuleDirective
equals, hashCode, name
-
-
-
-
Method Detail
-
getType
public JModuleDirective.Type getType()
Gets the type of this module directive.- Specified by:
getTypein classJModuleDirective- Returns:
- type of this module directive. Will always return
Type.ExportsDirective.
-
generate
public JFormatter generate(JFormatter f)
Print source code of this module directive.- Specified by:
generatein classJModuleDirective- Parameters:
f- Java code formatter.- Returns:
- provided instance of Java code formatter.
-
-