Esempio n. 1
0
 /** Overrides {@link HtmlStandardWriter#generateTagInfo} to include Plugged In's tags. */
 public void generateTagInfo(Doc doc) {
   Tag[] sinces = doc.tags("since");
   Tag[] sees = doc.seeTags();
   Tag[] authors;
   Tag[] versions;
   Tag[] copyrights;
   Tag[] createds;
   Tag[] modifieds;
   Tag[] licences;
   if (configuration.showauthor) {
     authors = doc.tags("author");
   } else {
     authors = new Tag[0];
   }
   if (configuration.showversion) {
     versions = doc.tags("version");
   } else {
     versions = new Tag[0];
   }
   if (configuration.nosince) {
     sinces = new Tag[0];
   }
   copyrights = doc.tags("copyright");
   createds = doc.tags("created");
   licences = doc.tags("licence");
   modifieds = doc.tags("modified");
   if (sinces.length > 0
       || sees.length > 0
       || authors.length > 0
       || versions.length > 0
       || copyrights.length > 0
       || createds.length > 0
       || licences.length > 0
       || modifieds.length > 0
       || (doc.isClass() && ((ClassDoc) doc).isSerializable())) {
     dl();
     printSinceTag(doc);
     if (versions.length > 0) {
       // There is going to be only one Version tag.
       dt();
       boldText("doclet.Version");
       dd();
       printInlineComment(versions[0]);
       ddEnd();
     }
     if (authors.length > 0) {
       dt();
       boldText("doclet.Author");
       dd();
       for (int i = 0; i < authors.length; ++i) {
         if (i > 0) {
           print(", ");
         }
         printInlineComment(authors[i]);
       }
       ddEnd();
     }
     if (createds.length > 0) {
       // There is going to be only one Created tag.
       dt();
       write("<b>Created:</b>");
       dd();
       printInlineComment(createds[0]);
       ddEnd();
     }
     if (modifieds.length > 0) {
       dt();
       write("<b>Modified:</b>");
       dd();
       for (int i = 0; i < modifieds.length; ++i) {
         if (i > 0) {
           print(", ");
         }
         printInlineComment(modifieds[i]);
       }
       ddEnd();
     }
     if (copyrights.length > 0) {
       dt();
       write("<b>Copyright:</b>");
       dd();
       for (int i = 0; i < copyrights.length; ++i) {
         if (i > 0) {
           print(", ");
         }
         printInlineComment(copyrights[i]);
       }
       ddEnd();
     }
     if (licences.length > 0) {
       // There is going to be only one Licence tag.
       dt();
       write("<b>Licence:</b>");
       dd();
       printInlineComment(licences[0]);
       ddEnd();
     }
     // printSeeTags(doc);  // This method vanished in 1.4 beta 3
     dlEnd();
   }
 }
Esempio n. 2
0
 public SeeTag[] getSeeTags() {
   return SeeTag.convert(mRootDoc, mDoc.seeTags());
 }