Package org.codehaus.janino
Class Java.ModuleDeclaration
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.ModuleDeclaration
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java
public static final class Java.ModuleDeclaration extends Java.Located
Representation of a "module declaration", as described in JLS9 7.7.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isOpen
Whether this module is declared with theopen
keyword; see JLS9 7.7.Java.Modifier[]
modifiers
The modifiers of the module declaration; module declarations must have only annotations, no access modifiers.Java.ModuleDirective[]
moduleDirectives
The directives declared in this module, see JLS9 7.7.java.lang.String[]
moduleName
The name of the declared module, see JLS9 7.7.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description ModuleDeclaration(Location location, Java.Modifier[] modifiers, boolean isOpen, java.lang.String[] moduleName, Java.ModuleDirective[] moduleDirectives)
-
Method Summary
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
modifiers
public final Java.Modifier[] modifiers
The modifiers of the module declaration; module declarations must have only annotations, no access modifiers.
-
isOpen
public final boolean isOpen
Whether this module is declared with theopen
keyword; see JLS9 7.7.
-
moduleName
public final java.lang.String[] moduleName
The name of the declared module, see JLS9 7.7.
-
moduleDirectives
public final Java.ModuleDirective[] moduleDirectives
The directives declared in this module, see JLS9 7.7.
-
-
Constructor Detail
-
ModuleDeclaration
public ModuleDeclaration(Location location, Java.Modifier[] modifiers, boolean isOpen, java.lang.String[] moduleName, Java.ModuleDirective[] moduleDirectives)
-
-