public static final class Java.ExportsModuleDirective extends Java.Located implements Java.ModuleDirective
| Modifier and Type | Field and Description |
|---|---|
String[] |
packageName
The name of a package to be exported by this module, see JLS9 7.7.2.
|
String[][] |
toModuleNames
The names of the modules for which the public and protected types in this package, and their public and
protected members, are accessible.
|
NOWHERE| Modifier | Constructor and Description |
|---|---|
protected |
ExportsModuleDirective(Location location,
String[] packageName,
String[][] toModuleNames) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.ModuleDirectiveVisitor for the concrete Java.ModuleDirective type. |
getLocation, throwCompileExceptionpublic final String[] packageName
@Nullable public <R,EX extends Throwable> R accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor) throws EX extends Throwable
Java.ModuleDirectivevisit...()" method of Visitor.ModuleDirectiveVisitor for the concrete Java.ModuleDirective type.accept in interface Java.ModuleDirectiveEX extends ThrowableCopyright © 2022. All rights reserved.