langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ProfileSummaryBuilder.java
changeset 24221 2376793dd33b
parent 22159 682da512ec17
child 25454 376a52c9540c
equal deleted inserted replaced
24220:eb213562268d 24221:2376793dd33b
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package com.sun.tools.doclets.internal.toolkit.builders;
    26 package com.sun.tools.doclets.internal.toolkit.builders;
    27 
    27 
    28 import java.io.*;
    28 import java.io.IOException;
       
    29 import java.util.List;
    29 
    30 
    30 import com.sun.javadoc.*;
    31 import com.sun.javadoc.*;
    31 import com.sun.tools.javac.jvm.Profile;
    32 import com.sun.tools.javac.jvm.Profile;
    32 import com.sun.tools.doclets.internal.toolkit.*;
    33 import com.sun.tools.doclets.internal.toolkit.*;
    33 import com.sun.tools.doclets.internal.toolkit.util.*;
    34 import com.sun.tools.doclets.internal.toolkit.util.*;
   163      * @param node the XML element that specifies which components to document
   164      * @param node the XML element that specifies which components to document
   164      * @param summaryContentTree the content tree to which the summaries will
   165      * @param summaryContentTree the content tree to which the summaries will
   165      *                           be added
   166      *                           be added
   166      */
   167      */
   167     public void buildPackageSummary(XMLNode node, Content summaryContentTree) {
   168     public void buildPackageSummary(XMLNode node, Content summaryContentTree) {
   168         PackageDoc[] packages = configuration.profilePackages.get(profile.name);
   169         List<PackageDoc> packages = configuration.profilePackages.get(profile.name);
   169         for (PackageDoc aPackage : packages) {
   170         for (PackageDoc aPackage : packages) {
   170             this.pkg = aPackage;
   171             this.pkg = aPackage;
   171             Content packageSummaryContentTree = profileWriter.getPackageSummaryHeader(this.pkg);
   172             Content packageSummaryContentTree = profileWriter.getPackageSummaryHeader(this.pkg);
   172             buildChildren(node, packageSummaryContentTree);
   173             buildChildren(node, packageSummaryContentTree);
   173             summaryContentTree.addContent(profileWriter.getPackageSummaryTree(
   174             summaryContentTree.addContent(profileWriter.getPackageSummaryTree(