Package org.codehaus.janino
Class Java.ExportsModuleDirective
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.ExportsModuleDirective
-
- All Implemented Interfaces:
Java.Locatable
,Java.ModuleDirective
- Enclosing class:
- Java
public static final class Java.ExportsModuleDirective extends Java.Located implements Java.ModuleDirective
Representation of a (Java 9+) "exports directive", as explained in JLS9 7.7.2.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
packageName
The name of a package to be exported by this module, see JLS9 7.7.2.java.lang.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.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExportsModuleDirective(Location location, java.lang.String[] packageName, java.lang.String[][] toModuleNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.ModuleDirectiveVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
packageName
public final java.lang.String[] packageName
The name of a package to be exported by this module, see JLS9 7.7.2.
-
toModuleNames
@Nullable public final java.lang.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. Iffnull
, then this directive is "unqualified", i.e. it has no "to
" clause
-
-
Method Detail
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.ModuleDirectiveVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description copied from interface:Java.ModuleDirective
Invokes the "visit...()
" method ofVisitor.ModuleDirectiveVisitor
for the concreteJava.ModuleDirective
type.- Specified by:
accept
in interfaceJava.ModuleDirective
- Throws:
EX extends java.lang.Throwable
-
-