Class 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 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 the open 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.