Top Description Fields Constructors Methods
com.sun.codemodel

public Class JExportsDirective

extends JModuleDirective
Class Inheritance

Represents a Java module exports directive. For example "exports foo.bar;".
Author
Tomas Kraus

Field Summary

Inherited from com.sun.codemodel.JModuleDirective:
name

Constructor Summary

AccessConstructor and Description
pack-priv
JExportsDirective(final String
name of package to be exported in this directive.
name
)

Creates an instance of Java module exports directive.

Method Summary

Modifier and TypeMethod and Description
public JFormatter

Returns:

provided instance of Java code formatter.
generate
(final JFormatter
Java code formatter.
f
)

Implements abstract com.sun.codemodel.JModuleDirective.generate.

Print source code of this module directive.

public JModuleDirective.Type

Returns:

type of this module directive. Will always return Type.ExportsDirective.
getType
()

Implements abstract com.sun.codemodel.JModuleDirective.getType.

Gets the type of this module directive.

Inherited from com.sun.codemodel.JModuleDirective:
equalshashCodename

Constructor Detail

JExportsDirectiveback to summary
pack-priv JExportsDirective(final String name)

Creates an instance of Java module exports directive.

Parameters
name:String

name of package to be exported in this directive.

Exceptions
IllegalArgumentException:
if the name argument is null.

Method Detail

generateback to summary
public JFormatter generate(final JFormatter f)

Implements abstract com.sun.codemodel.JModuleDirective.generate.

Print source code of this module directive.

Parameters
f:JFormatter

Java code formatter.

Returns:JFormatter

provided instance of Java code formatter.

Annotations
@Override
getTypeback to summary
public JModuleDirective.Type getType()

Implements abstract com.sun.codemodel.JModuleDirective.getType.

Gets the type of this module directive.

Returns:JModuleDirective.Type

type of this module directive. Will always return Type.ExportsDirective.

Annotations
@Override