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