< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/ConstructorBuilder.java

Print this page




 122     @Override
 123     public void build(Content contentTree) throws DocletException {
 124         buildConstructorDoc(contentTree);
 125     }
 126 
 127     /**
 128      * Build the constructor documentation.
 129      *
 130      * @param memberDetailsTree the content tree to which the documentation will be added
 131      * @throws DocletException is there is a problem while building the documentation
 132      */
 133     protected void buildConstructorDoc(Content memberDetailsTree) throws DocletException {
 134         if (writer == null) {
 135             return;
 136         }
 137         if (hasMembersToDocument()) {
 138             Content constructorDetailsTreeHeader = writer.getConstructorDetailsTreeHeader(typeElement,
 139                     memberDetailsTree);
 140             Content constructorDetailsTree = writer.getMemberTreeHeader();
 141 

 142             for (Element contructor : constructors) {
 143                 currentConstructor = (ExecutableElement)contructor;
 144                 Content constructorDocTree = writer.getConstructorDocTreeHeader(currentConstructor, constructorDetailsTree);
 145 
 146                 buildSignature(constructorDocTree);
 147                 buildDeprecationInfo(constructorDocTree);
 148                 buildConstructorComments(constructorDocTree);
 149                 buildTagInfo(constructorDocTree);
 150 
 151                 constructorDetailsTree.add(writer.getConstructorDoc(constructorDocTree));

 152             }
 153             memberDetailsTree.add(
 154                     writer.getConstructorDetails(constructorDetailsTreeHeader, constructorDetailsTree));
 155         }
 156     }
 157 
 158     /**
 159      * Build the signature.
 160      *
 161      * @param constructorDocTree the content tree to which the documentation will be added
 162      */
 163     protected void buildSignature(Content constructorDocTree) {
 164         constructorDocTree.add(writer.getSignature(currentConstructor));
 165     }
 166 
 167     /**
 168      * Build the deprecation information.
 169      *
 170      * @param constructorDocTree the content tree to which the documentation will be added
 171      */




 122     @Override
 123     public void build(Content contentTree) throws DocletException {
 124         buildConstructorDoc(contentTree);
 125     }
 126 
 127     /**
 128      * Build the constructor documentation.
 129      *
 130      * @param memberDetailsTree the content tree to which the documentation will be added
 131      * @throws DocletException is there is a problem while building the documentation
 132      */
 133     protected void buildConstructorDoc(Content memberDetailsTree) throws DocletException {
 134         if (writer == null) {
 135             return;
 136         }
 137         if (hasMembersToDocument()) {
 138             Content constructorDetailsTreeHeader = writer.getConstructorDetailsTreeHeader(typeElement,
 139                     memberDetailsTree);
 140             Content constructorDetailsTree = writer.getMemberTreeHeader();
 141 
 142             Element lastElement = constructors.get(constructors.size() - 1);
 143             for (Element contructor : constructors) {
 144                 currentConstructor = (ExecutableElement)contructor;
 145                 Content constructorDocTree = writer.getConstructorDocTreeHeader(currentConstructor, constructorDetailsTree);
 146 
 147                 buildSignature(constructorDocTree);
 148                 buildDeprecationInfo(constructorDocTree);
 149                 buildConstructorComments(constructorDocTree);
 150                 buildTagInfo(constructorDocTree);
 151 
 152                 constructorDetailsTree.add(writer.getConstructorDoc(constructorDocTree,
 153                         currentConstructor == lastElement));
 154             }
 155             memberDetailsTree.add(
 156                     writer.getConstructorDetails(constructorDetailsTreeHeader, constructorDetailsTree));
 157         }
 158     }
 159 
 160     /**
 161      * Build the signature.
 162      *
 163      * @param constructorDocTree the content tree to which the documentation will be added
 164      */
 165     protected void buildSignature(Content constructorDocTree) {
 166         constructorDocTree.add(writer.getSignature(currentConstructor));
 167     }
 168 
 169     /**
 170      * Build the deprecation information.
 171      *
 172      * @param constructorDocTree the content tree to which the documentation will be added
 173      */


< prev index next >