Example #1
0
 /** {@inheritDoc} */
 public Content getTagletOutput(Tag tag, TagletWriter writer) {
   ArrayList inlineTags = new ArrayList();
   inlineTags.add(new TextTag(tag.holder(), "<b>"));
   inlineTags.addAll(Arrays.asList(tag.inlineTags()));
   inlineTags.add(new TextTag(tag.holder(), "</b>"));
   return writer.commentTagsToOutput(tag, (Tag[]) inlineTags.toArray(new Tag[] {}));
 }
Example #2
0
 /**
  * Given the <code>Tag</code> representation of this custom tag, return its string representation,
  * which is output to the generated page.
  *
  * @param tag the <code>Tag</code> representation of this custom tag.
  * @param tagletWriter the taglet writer for output.
  * @return the TagletOutput representation of this <code>Tag</code>.
  */
 public TagletOutput getTagletOutput(Tag tag, TagletWriter tagletWriter) {
   if (!(tag.holder() instanceof MethodDoc)) {
     return tagletWriter.getOutputInstance();
   }
   return tag.name().equals("@inheritDoc")
       ? retrieveInheritedDocumentation(
           tagletWriter, (MethodDoc) tag.holder(), null, tagletWriter.isFirstSentence)
       : retrieveInheritedDocumentation(
           tagletWriter, (MethodDoc) tag.holder(), tag, tagletWriter.isFirstSentence);
 }