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
FieldsModifier and TypeFieldDescriptionfinal String[]The name of a package to be exported by this module, see JLS9 7.7.2.final String[][]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 Java.Located
NOWHERE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExportsModuleDirective(Location location, String[] packageName, String[][] toModuleNames) -
Method Summary
Modifier and TypeMethodDescription<R, EX extends Throwable>
Raccept(Visitor.ModuleDirectiveVisitor<R, EX> visitor) Invokes the "visit...()" method ofVisitor.ModuleDirectiveVisitorfor the concreteJava.ModuleDirectivetype.Methods inherited from class Java.Located
getLocation, throwCompileException
-
Field Details
-
packageName
The name of a package to be exported by this module, see JLS9 7.7.2. -
toModuleNames
-
-
Constructor Details
-
ExportsModuleDirective
-
-
Method Details
-
accept
@Nullable public <R, EX extends Throwable> R accept(Visitor.ModuleDirectiveVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.ModuleDirectiveInvokes the "visit...()" method ofVisitor.ModuleDirectiveVisitorfor the concreteJava.ModuleDirectivetype.- Specified by:
acceptin interfaceJava.ModuleDirective- Throws:
EX
-