< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlSerialFieldWriter.java

Print this page




 190      */
 191     public void addMemberTags(VariableElement field, Content contentTree) {
 192         Content tagContent = new ContentBuilder();
 193         TagletWriter.genTagOutput(configuration.tagletManager, field,
 194                 configuration.tagletManager.getBlockTaglets(field),
 195                 writer.getTagletWriterInstance(false), tagContent);
 196         Content dlTags = new HtmlTree(HtmlTag.DL);
 197         dlTags.add(tagContent);
 198         contentTree.add(dlTags);  // TODO: what if empty?
 199     }
 200 
 201     /**
 202      * Check to see if overview details should be printed. If
 203      * nocomment option set or if there is no text to be printed
 204      * for deprecation info, comment or tags, do not print overview details.
 205      *
 206      * @param field the field to check overview details for.
 207      * @return true if overview details need to be printed
 208      */
 209     public boolean shouldPrintOverview(VariableElement field) {
 210         if (!configuration.nocomment) {
 211             if(!utils.getFullBody(field).isEmpty() ||
 212                     writer.hasSerializationOverviewTags(field))
 213                 return true;
 214         }
 215         if (utils.isDeprecated(field))
 216             return true;
 217         return false;
 218     }
 219 }


 190      */
 191     public void addMemberTags(VariableElement field, Content contentTree) {
 192         Content tagContent = new ContentBuilder();
 193         TagletWriter.genTagOutput(configuration.tagletManager, field,
 194                 configuration.tagletManager.getBlockTaglets(field),
 195                 writer.getTagletWriterInstance(false), tagContent);
 196         Content dlTags = new HtmlTree(HtmlTag.DL);
 197         dlTags.add(tagContent);
 198         contentTree.add(dlTags);  // TODO: what if empty?
 199     }
 200 
 201     /**
 202      * Check to see if overview details should be printed. If
 203      * nocomment option set or if there is no text to be printed
 204      * for deprecation info, comment or tags, do not print overview details.
 205      *
 206      * @param field the field to check overview details for.
 207      * @return true if overview details need to be printed
 208      */
 209     public boolean shouldPrintOverview(VariableElement field) {
 210         if (!options.noComment) {
 211             if(!utils.getFullBody(field).isEmpty() ||
 212                     writer.hasSerializationOverviewTags(field))
 213                 return true;
 214         }
 215         if (utils.isDeprecated(field))
 216             return true;
 217         return false;
 218     }
 219 }
< prev index next >