langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java
changeset 44809 931f88b3014d
parent 44179 4fa9641810db
child 44878 9dd9cf7919ff
equal deleted inserted replaced
44808:702854495934 44809:931f88b3014d
    26 package javax.lang.model.element;
    26 package javax.lang.model.element;
    27 
    27 
    28 import java.util.List;
    28 import java.util.List;
    29 
    29 
    30 /**
    30 /**
    31  * Represents a module program element.  Provides access to information
    31  * Represents a module program element.  Provides access to
    32  * about the module and its members.
    32  * information about the module, its directives, and its members.
    33  *
    33  *
    34  * @see javax.lang.model.util.Elements#getModuleOf
    34  * @see javax.lang.model.util.Elements#getModuleOf
    35  * @since 9
    35  * @since 9
       
    36  * @jls 7.7 Module Declarations
    36  * @spec JPMS
    37  * @spec JPMS
    37  */  // TODO: add @jls to module section
    38  */
    38 public interface ModuleElement extends Element, QualifiedNameable {
    39 public interface ModuleElement extends Element, QualifiedNameable {
    39 
    40 
    40     /**
    41     /**
    41      * Returns the fully qualified name of this module.  For an
    42      * Returns the fully qualified name of this module.  For an
    42      * {@linkplain #isUnnamed() unnamed module}, an empty name is returned.
    43      * {@linkplain #isUnnamed() unnamed module}, an empty name is returned.
   119         /** A "provides service-name with implementation-name" directive. */
   120         /** A "provides service-name with implementation-name" directive. */
   120         PROVIDES
   121         PROVIDES
   121     };
   122     };
   122 
   123 
   123     /**
   124     /**
   124      * Represents a "module statement" within the declaration of this module.
   125      * Represents a directive within the declaration of this
   125      *
   126      * module. The directives of a module declaration configure the
   126      * @since 9
   127      * module in the Java Platform Module System.
   127      * @spec JPMS
   128      *
   128      *
   129      * @since 9
   129      */ // TODO: add jls to Module Statement
   130      * @spec JPMS
       
   131      */
   130     interface Directive {
   132     interface Directive {
   131         /**
   133         /**
   132          * Returns the {@code kind} of this directive.
   134          * Returns the {@code kind} of this directive.
   133          *
   135          *
   134          * @return the kind of this directive
   136          * @return the kind of this directive