< prev index next >

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

Print this page




 111      */
 112     @Override
 113     public void build(Content contentTree) throws DocletException {
 114         buildPropertyDoc(contentTree);
 115     }
 116 
 117     /**
 118      * Build the property 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 buildPropertyDoc(Content memberDetailsTree) throws DocletException {
 124         if (writer == null) {
 125             return;
 126         }
 127         if (hasMembersToDocument()) {
 128             Content propertyDetailsTreeHeader = writer.getPropertyDetailsTreeHeader(typeElement,
 129                     memberDetailsTree);
 130             Content propertyDetailsTree = writer.getMemberTreeHeader();
 131 
 132             for (Element property : properties) {
 133                 currentProperty = (ExecutableElement)property;
 134                 Content propertyDocTree = writer.getPropertyDocTreeHeader(currentProperty,
 135                         propertyDetailsTree);
 136 
 137                 buildSignature(propertyDocTree);
 138                 buildPropertyComments(propertyDocTree);
 139                 buildTagInfo(propertyDocTree);
 140 
 141                 propertyDetailsTree.add(writer.getPropertyDoc(propertyDocTree));

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




 111      */
 112     @Override
 113     public void build(Content contentTree) throws DocletException {
 114         buildPropertyDoc(contentTree);
 115     }
 116 
 117     /**
 118      * Build the property 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 buildPropertyDoc(Content memberDetailsTree) throws DocletException {
 124         if (writer == null) {
 125             return;
 126         }
 127         if (hasMembersToDocument()) {
 128             Content propertyDetailsTreeHeader = writer.getPropertyDetailsTreeHeader(typeElement,
 129                     memberDetailsTree);
 130             Content propertyDetailsTree = writer.getMemberTreeHeader();
 131             Element lastElement = properties.get(properties.size() - 1);
 132             for (Element property : properties) {
 133                 currentProperty = (ExecutableElement)property;
 134                 Content propertyDocTree = writer.getPropertyDocTreeHeader(currentProperty,
 135                         propertyDetailsTree);
 136 
 137                 buildSignature(propertyDocTree);
 138                 buildPropertyComments(propertyDocTree);
 139                 buildTagInfo(propertyDocTree);
 140 
 141                 propertyDetailsTree.add(writer.getPropertyDoc(
 142                         propertyDocTree, currentProperty == lastElement));
 143             }
 144             memberDetailsTree.add(
 145                     writer.getPropertyDetails(propertyDetailsTreeHeader, propertyDetailsTree));
 146         }
 147     }
 148 
 149     /**
 150      * Build the signature.
 151      *
 152      * @param propertyDocTree the content tree to which the documentation will be added
 153      */
 154     protected void buildSignature(Content propertyDocTree) {
 155         propertyDocTree.add(writer.getSignature(currentProperty));
 156     }
 157 
 158     /**
 159      * Build the deprecation information.
 160      *
 161      * @param propertyDocTree the content tree to which the documentation will be added
 162      */


< prev index next >