langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java
changeset 25454 376a52c9540c
parent 24221 2376793dd33b
equal deleted inserted replaced
25453:be80cf0463b3 25454:376a52c9540c
    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.*;
    29 import java.util.*;
       
    30 
    29 
    31 import com.sun.javadoc.*;
    30 import com.sun.javadoc.*;
    32 import com.sun.tools.doclets.internal.toolkit.*;
    31 import com.sun.tools.doclets.internal.toolkit.*;
    33 import com.sun.tools.doclets.internal.toolkit.util.*;
       
    34 
    32 
    35 /**
    33 /**
    36  * Builds the summary for a given annotation type.
    34  * Builds the summary for a given annotation type.
    37  *
    35  *
    38  *  <p><b>This is NOT part of any supported API.
    36  *  <p><b>This is NOT part of any supported API.
   136             !configuration.packages.contains(containingPackage) &&
   134             !configuration.packages.contains(containingPackage) &&
   137             !containingPackagesSeen.contains(containingPackage))){
   135             !containingPackagesSeen.contains(containingPackage))){
   138             //Only copy doc files dir if the containing package is not
   136             //Only copy doc files dir if the containing package is not
   139             //documented AND if we have not documented a class from the same
   137             //documented AND if we have not documented a class from the same
   140             //package already. Otherwise, we are making duplicate copies.
   138             //package already. Otherwise, we are making duplicate copies.
   141             Util.copyDocFiles(configuration, containingPackage);
   139             utils.copyDocFiles(configuration, containingPackage);
   142             containingPackagesSeen.add(containingPackage);
   140             containingPackagesSeen.add(containingPackage);
   143         }
   141         }
   144      }
   142      }
   145 
   143 
   146     /**
   144     /**
   172      * @param annotationInfoTree the content tree to which the documentation will be added
   170      * @param annotationInfoTree the content tree to which the documentation will be added
   173      */
   171      */
   174     public void buildAnnotationTypeSignature(XMLNode node, Content annotationInfoTree) {
   172     public void buildAnnotationTypeSignature(XMLNode node, Content annotationInfoTree) {
   175         StringBuilder modifiers = new StringBuilder(
   173         StringBuilder modifiers = new StringBuilder(
   176                 annotationTypeDoc.modifiers() + " ");
   174                 annotationTypeDoc.modifiers() + " ");
   177         writer.addAnnotationTypeSignature(Util.replaceText(
   175         writer.addAnnotationTypeSignature(utils.replaceText(
   178                 modifiers.toString(), "interface", "@interface"), annotationInfoTree);
   176                 modifiers.toString(), "interface", "@interface"), annotationInfoTree);
   179     }
   177     }
   180 
   178 
   181     /**
   179     /**
   182      * Build the annotation type description.
   180      * Build the annotation type description.