< prev index next >

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

Print this page




 106 
 107     /**
 108      * {@inheritDoc}
 109      */
 110     @Override
 111     public void build(Content contentTree) throws DocletException {
 112         buildMethodDoc(contentTree);
 113     }
 114 
 115     /**
 116      * Build the method documentation.
 117      *
 118      * @param memberDetailsTree the content tree to which the documentation will be added
 119      * @throws DocletException if there is a problem while building the documentation
 120      */
 121     protected void buildMethodDoc(Content memberDetailsTree) throws DocletException {
 122         if (writer == null) {
 123             return;
 124         }
 125         if (hasMembersToDocument()) {
 126             Content methodDetailsTreeHeader = writer.getMethodDetailsTreeHeader(typeElement,
 127                     memberDetailsTree);
 128             Content methodDetailsTree = writer.getMemberTreeHeader();
 129 
 130             for (Element method : methods) {
 131                 currentMethod = (ExecutableElement)method;
 132                 Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod, methodDetailsTree);
 133 
 134                 buildSignature(methodDocTree);
 135                 buildDeprecationInfo(methodDocTree);
 136                 buildMethodComments(methodDocTree);
 137                 buildTagInfo(methodDocTree);
 138 
 139                 methodDetailsTree.add(writer.getMethodDoc(methodDocTree));
 140             }
 141             memberDetailsTree.add(writer.getMethodDetails(methodDetailsTreeHeader, methodDetailsTree));
 142         }
 143     }
 144 
 145     /**
 146      * Build the signature.
 147      *
 148      * @param methodDocTree the content tree to which the documentation will be added
 149      */
 150     protected void buildSignature(Content methodDocTree) {
 151         methodDocTree.add(writer.getSignature(currentMethod));
 152     }




 106 
 107     /**
 108      * {@inheritDoc}
 109      */
 110     @Override
 111     public void build(Content contentTree) throws DocletException {
 112         buildMethodDoc(contentTree);
 113     }
 114 
 115     /**
 116      * Build the method documentation.
 117      *
 118      * @param memberDetailsTree the content tree to which the documentation will be added
 119      * @throws DocletException if there is a problem while building the documentation
 120      */
 121     protected void buildMethodDoc(Content memberDetailsTree) throws DocletException {
 122         if (writer == null) {
 123             return;
 124         }
 125         if (hasMembersToDocument()) {
 126             Content methodDetailsTreeHeader = writer.getMethodDetailsTreeHeader(memberDetailsTree);

 127             Content methodDetailsTree = writer.getMemberTreeHeader();
 128 
 129             for (Element method : methods) {
 130                 currentMethod = (ExecutableElement)method;
 131                 Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod);
 132 
 133                 buildSignature(methodDocTree);
 134                 buildDeprecationInfo(methodDocTree);
 135                 buildMethodComments(methodDocTree);
 136                 buildTagInfo(methodDocTree);
 137 
 138                 methodDetailsTree.add(writer.getMethodDoc(methodDocTree));
 139             }
 140             memberDetailsTree.add(writer.getMethodDetails(methodDetailsTreeHeader, methodDetailsTree));
 141         }
 142     }
 143 
 144     /**
 145      * Build the signature.
 146      *
 147      * @param methodDocTree the content tree to which the documentation will be added
 148      */
 149     protected void buildSignature(Content methodDocTree) {
 150         methodDocTree.add(writer.getSignature(currentMethod));
 151     }


< prev index next >