src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/ModuleSummaryBuilder.java
author hannesw
Wed, 27 Nov 2019 13:08:16 +0100
changeset 59294 48b88b9c11eb
parent 54936 8c63164bd540
permissions -rw-r--r--
8223378: CSS solution for navbar problem with <a> elements is not ideal Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     1
/*
54060
53a95878619f 8220202: Simplify/standardize method naming for HtmlTree
jjg
parents: 48029
diff changeset
     2
 * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     4
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    10
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    15
 * accompanied this code).
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    16
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    20
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    23
 * questions.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    24
 */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    25
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    26
package jdk.javadoc.internal.doclets.toolkit.builders;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    27
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    28
import javax.lang.model.element.ModuleElement;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    29
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    30
import jdk.javadoc.internal.doclets.toolkit.Content;
54936
8c63164bd540 8219313: Support module specific stylesheets
pmuthuswamy
parents: 54060
diff changeset
    31
import jdk.javadoc.internal.doclets.toolkit.DocFilesHandler;
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    32
import jdk.javadoc.internal.doclets.toolkit.DocletException;
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    33
import jdk.javadoc.internal.doclets.toolkit.ModuleSummaryWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    34
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    35
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    36
/**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    37
 * Builds the summary for a given module.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    38
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    39
 *  <p><b>This is NOT part of any supported API.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    40
 *  If you write code that depends on this, you do so at your own risk.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    41
 *  This code and its internal interfaces are subject to change or
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    42
 *  deletion without notice.</b>
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    43
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    44
 * @author Bhavesh Patel
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    45
 */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    46
public class ModuleSummaryBuilder extends AbstractBuilder {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    47
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    48
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    49
     * The module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    50
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    51
    private final ModuleElement mdle;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    52
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    53
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    54
     * The doclet specific writer that will output the result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    55
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    56
    private final ModuleSummaryWriter moduleWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    57
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    58
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    59
     * Construct a new ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    60
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    61
     * @param context  the build context.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    62
     * @param mdle the module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    63
     * @param moduleWriter the doclet specific writer that will output the
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    64
     *        result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    65
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    66
    private ModuleSummaryBuilder(Context context,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    67
            ModuleElement mdle, ModuleSummaryWriter moduleWriter) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    68
        super(context);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    69
        this.mdle = mdle;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    70
        this.moduleWriter = moduleWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    71
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    72
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    73
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    74
     * Construct a new ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    75
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    76
     * @param context  the build context.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    77
     * @param mdle the module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    78
     * @param moduleWriter the doclet specific writer that will output the
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    79
     *        result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    80
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    81
     * @return an instance of a ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    82
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    83
    public static ModuleSummaryBuilder getInstance(Context context,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    84
            ModuleElement mdle, ModuleSummaryWriter moduleWriter) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    85
        return new ModuleSummaryBuilder(context, mdle, moduleWriter);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    86
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    87
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    88
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    89
     * Build the module summary.
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    90
     *
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    91
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    92
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    93
    @Override
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    94
    public void build() throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    95
        if (moduleWriter == null) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    96
            //Doclet does not support this output.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    97
            return;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    98
        }
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
    99
        buildModuleDoc();
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   100
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   101
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   102
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   103
     * Build the module documentation.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   104
     *
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   105
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   106
     */
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   107
    protected void buildModuleDoc() throws DocletException {
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   108
        Content contentTree = moduleWriter.getModuleHeader(mdle.getQualifiedName().toString());
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   109
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   110
        buildContent();
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   111
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   112
        moduleWriter.addModuleFooter();
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   113
        moduleWriter.printDocument(contentTree);
54936
8c63164bd540 8219313: Support module specific stylesheets
pmuthuswamy
parents: 54060
diff changeset
   114
        DocFilesHandler docFilesHandler = configuration.getWriterFactory().getDocFilesHandler(mdle);
8c63164bd540 8219313: Support module specific stylesheets
pmuthuswamy
parents: 54060
diff changeset
   115
        docFilesHandler.copyDocFiles();
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   116
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   117
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   118
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   119
     * Build the content for the module doc.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   120
     *
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   121
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   122
     */
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   123
    protected void buildContent() throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   124
        Content moduleContentTree = moduleWriter.getContentHeader();
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   125
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   126
        buildModuleDescription(moduleContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   127
        buildModuleTags(moduleContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   128
        buildSummary(moduleContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   129
59294
48b88b9c11eb 8223378: CSS solution for navbar problem with <a> elements is not ideal
hannesw
parents: 54936
diff changeset
   130
        moduleWriter.addModuleContent(moduleContentTree);
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   131
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   132
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   133
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   134
     * Build the module summary.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   135
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   136
     * @param moduleContentTree the module content tree to which the summaries will
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   137
     *                           be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   138
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   139
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   140
    protected void buildSummary(Content moduleContentTree) throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   141
        Content summaryContentTree = moduleWriter.getSummaryHeader();
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   142
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   143
        buildPackagesSummary(summaryContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   144
        buildModulesSummary(summaryContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   145
        buildServicesSummary(summaryContentTree);
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   146
54060
53a95878619f 8220202: Simplify/standardize method naming for HtmlTree
jjg
parents: 48029
diff changeset
   147
        moduleContentTree.add(moduleWriter.getSummaryTree(summaryContentTree));
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   148
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   149
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   150
    /**
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   151
     * Build the modules summary.
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   152
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   153
     * @param summaryContentTree the content tree to which the summaries will
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   154
     *                           be added
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   155
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   156
    protected void buildModulesSummary(Content summaryContentTree) {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   157
        moduleWriter.addModulesSummary(summaryContentTree);
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   158
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   159
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   160
    /**
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   161
     * Build the package summary.
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   162
     *
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   163
     * @param summaryContentTree the content tree to which the summaries will be added
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   164
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   165
    protected void buildPackagesSummary(Content summaryContentTree) {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   166
        moduleWriter.addPackagesSummary(summaryContentTree);
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   167
    }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   168
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   169
    /**
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   170
     * Build the services summary.
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   171
     *
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   172
     * @param summaryContentTree the content tree to which the summaries will be added
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   173
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   174
    protected void buildServicesSummary(Content summaryContentTree) {
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   175
        moduleWriter.addServicesSummary(summaryContentTree);
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   176
    }
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   177
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   178
    /**
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   179
     * Build the description for the module.
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   180
     *
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   181
     * @param moduleContentTree the tree to which the module description will
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   182
     *                           be added
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   183
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   184
    protected void buildModuleDescription(Content moduleContentTree) {
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   185
        if (!configuration.nocomment) {
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   186
            moduleWriter.addModuleDescription(moduleContentTree);
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   187
        }
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   188
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   189
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   190
    /**
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   191
     * Build the tags of the summary.
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   192
     *
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   193
     * @param moduleContentTree the tree to which the module tags will be added
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   194
     */
45599
8bc3a019f948 8149146: [javadoc] eliminate doclet.xml
jjg
parents: 40605
diff changeset
   195
    protected void buildModuleTags(Content moduleContentTree) {
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   196
        if (!configuration.nocomment) {
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   197
            moduleWriter.addModuleTags(moduleContentTree);
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   198
        }
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   199
    }
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   200
}