< prev index next >

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

Print this page




 111      */
 112     @Override
 113     public void build(Content contentTree) throws DocletException {
 114         buildFieldDoc(contentTree);
 115     }
 116 
 117     /**
 118      * Build the field documentation.
 119      *
 120      * @param memberDetailsTree the content tree to which the documentation will be added
 121      * @throws DocletException if there is a problem while building the documentation
 122      */
 123     protected void buildFieldDoc(Content memberDetailsTree) throws DocletException {
 124         if (writer == null) {
 125             return;
 126         }
 127         if (!fields.isEmpty()) {
 128             Content fieldDetailsTreeHeader = writer.getFieldDetailsTreeHeader(typeElement, memberDetailsTree);
 129             Content fieldDetailsTree = writer.getMemberTreeHeader();
 130 

 131             for (Element element : fields) {
 132                 currentElement = (VariableElement)element;
 133                 Content fieldDocTree = writer.getFieldDocTreeHeader(currentElement, fieldDetailsTree);
 134 
 135                 buildSignature(fieldDocTree);
 136                 buildDeprecationInfo(fieldDocTree);
 137                 buildFieldComments(fieldDocTree);
 138                 buildTagInfo(fieldDocTree);
 139 
 140                 fieldDetailsTree.add(writer.getFieldDoc(fieldDocTree));

 141             }
 142             memberDetailsTree.add(
 143                     writer.getFieldDetails(fieldDetailsTreeHeader, fieldDetailsTree));
 144         }
 145     }
 146 
 147     /**
 148      * Build the signature.
 149      *
 150      * @param fieldDocTree the content tree to which the documentation will be added
 151      */
 152     protected void buildSignature(Content fieldDocTree) {
 153         fieldDocTree.add(writer.getSignature(currentElement));
 154     }
 155 
 156     /**
 157      * Build the deprecation information.
 158      *
 159      * @param fieldDocTree the content tree to which the documentation will be added
 160      */




 111      */
 112     @Override
 113     public void build(Content contentTree) throws DocletException {
 114         buildFieldDoc(contentTree);
 115     }
 116 
 117     /**
 118      * Build the field documentation.
 119      *
 120      * @param memberDetailsTree the content tree to which the documentation will be added
 121      * @throws DocletException if there is a problem while building the documentation
 122      */
 123     protected void buildFieldDoc(Content memberDetailsTree) throws DocletException {
 124         if (writer == null) {
 125             return;
 126         }
 127         if (!fields.isEmpty()) {
 128             Content fieldDetailsTreeHeader = writer.getFieldDetailsTreeHeader(typeElement, memberDetailsTree);
 129             Content fieldDetailsTree = writer.getMemberTreeHeader();
 130 
 131             Element lastElement = fields.get(fields.size() - 1);
 132             for (Element element : fields) {
 133                 currentElement = (VariableElement)element;
 134                 Content fieldDocTree = writer.getFieldDocTreeHeader(currentElement, fieldDetailsTree);
 135 
 136                 buildSignature(fieldDocTree);
 137                 buildDeprecationInfo(fieldDocTree);
 138                 buildFieldComments(fieldDocTree);
 139                 buildTagInfo(fieldDocTree);
 140 
 141                 fieldDetailsTree.add(writer.getFieldDoc(
 142                         fieldDocTree, currentElement == lastElement));
 143             }
 144             memberDetailsTree.add(
 145                     writer.getFieldDetails(fieldDetailsTreeHeader, fieldDetailsTree));
 146         }
 147     }
 148 
 149     /**
 150      * Build the signature.
 151      *
 152      * @param fieldDocTree the content tree to which the documentation will be added
 153      */
 154     protected void buildSignature(Content fieldDocTree) {
 155         fieldDocTree.add(writer.getSignature(currentElement));
 156     }
 157 
 158     /**
 159      * Build the deprecation information.
 160      *
 161      * @param fieldDocTree the content tree to which the documentation will be added
 162      */


< prev index next >