< prev index next >

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

Print this page




 113     @Override
 114     public void build(Content contentTree) throws DocletException {
 115         buildMethodDoc(contentTree);
 116     }
 117 
 118     /**
 119      * Build the method documentation.
 120      *
 121      * @param memberDetailsTree the content tree to which the documentation will be added
 122      * @throws DocletException if there is a problem while building the documentation
 123      */
 124     protected void buildMethodDoc(Content memberDetailsTree) throws DocletException {
 125         if (writer == null) {
 126             return;
 127         }
 128         if (hasMembersToDocument()) {
 129             Content methodDetailsTreeHeader = writer.getMethodDetailsTreeHeader(typeElement,
 130                     memberDetailsTree);
 131             Content methodDetailsTree = writer.getMemberTreeHeader();
 132 

 133             for (Element method : methods) {
 134                 currentMethod = (ExecutableElement)method;
 135                 Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod, methodDetailsTree);
 136 
 137                 buildSignature(methodDocTree);
 138                 buildDeprecationInfo(methodDocTree);
 139                 buildMethodComments(methodDocTree);
 140                 buildTagInfo(methodDocTree);
 141 
 142                 methodDetailsTree.add(writer.getMethodDoc(methodDocTree));

 143             }
 144             memberDetailsTree.add(writer.getMethodDetails(methodDetailsTreeHeader, methodDetailsTree));
 145         }
 146     }
 147 
 148     /**
 149      * Build the signature.
 150      *
 151      * @param methodDocTree the content tree to which the documentation will be added
 152      */
 153     protected void buildSignature(Content methodDocTree) {
 154         methodDocTree.add(writer.getSignature(currentMethod));
 155     }
 156 
 157     /**
 158      * Build the deprecation information.
 159      *
 160      * @param methodDocTree the content tree to which the documentation will be added
 161      */
 162     protected void buildDeprecationInfo(Content methodDocTree) {




 113     @Override
 114     public void build(Content contentTree) throws DocletException {
 115         buildMethodDoc(contentTree);
 116     }
 117 
 118     /**
 119      * Build the method documentation.
 120      *
 121      * @param memberDetailsTree the content tree to which the documentation will be added
 122      * @throws DocletException if there is a problem while building the documentation
 123      */
 124     protected void buildMethodDoc(Content memberDetailsTree) throws DocletException {
 125         if (writer == null) {
 126             return;
 127         }
 128         if (hasMembersToDocument()) {
 129             Content methodDetailsTreeHeader = writer.getMethodDetailsTreeHeader(typeElement,
 130                     memberDetailsTree);
 131             Content methodDetailsTree = writer.getMemberTreeHeader();
 132 
 133             Element lastElement = methods.get(methods.size() - 1);
 134             for (Element method : methods) {
 135                 currentMethod = (ExecutableElement)method;
 136                 Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod, methodDetailsTree);
 137 
 138                 buildSignature(methodDocTree);
 139                 buildDeprecationInfo(methodDocTree);
 140                 buildMethodComments(methodDocTree);
 141                 buildTagInfo(methodDocTree);
 142 
 143                 methodDetailsTree.add(writer.getMethodDoc(
 144                         methodDocTree, currentMethod == lastElement));
 145             }
 146             memberDetailsTree.add(writer.getMethodDetails(methodDetailsTreeHeader, methodDetailsTree));
 147         }
 148     }
 149 
 150     /**
 151      * Build the signature.
 152      *
 153      * @param methodDocTree the content tree to which the documentation will be added
 154      */
 155     protected void buildSignature(Content methodDocTree) {
 156         methodDocTree.add(writer.getSignature(currentMethod));
 157     }
 158 
 159     /**
 160      * Build the deprecation information.
 161      *
 162      * @param methodDocTree the content tree to which the documentation will be added
 163      */
 164     protected void buildDeprecationInfo(Content methodDocTree) {


< prev index next >