private static String print(final Tag tag) { return String.valueOf(tag.getClass()) + "[" + "firstSentenceTags=" + toCSV(tag.firstSentenceTags()) + ", inlineTags=" + toCSV(tag.inlineTags()) + ", kind=" + tag.kind() + ", name=" + tag.name() + ", text=" + tag.text() + "]"; }
final Tag[] inlineTags = tag.inlineTags(); if (inlineTags != null && inlineTags.length > 0) { for (final Tag inlineTag : inlineTags) {
for (final Tag inlineTag : responseParamTag.inlineTags()) { final String tagName = inlineTag.name(); final String tagText = inlineTag.text();
/** * Add the inline deprecated comment. * * @param doc the doc for which the inline deprecated comment will be added * @param tag the inline tag to be added * @param htmltree the content tree to which the comment will be added */ public void addInlineDeprecatedComment(Doc doc, Tag tag, Content htmltree) { addCommentTags(doc, tag.inlineTags(), true, false, htmltree); }
public void printInlineDeprecatedComment( Doc doc, Tag tag ) { printCommentTags( doc, tag.inlineTags(), true, false ); }
public void printInlineComment( Doc doc, Tag tag ) { printCommentTags( doc, tag.inlineTags(), false, false ); }
/** * Add the inline comment. * * @param doc the doc for which the inline comment will be added * @param tag the inline tag to be added * @param htmltree the content tree to which the comment will be added */ public void addInlineComment(Doc doc, Tag tag, Content htmltree) { addCommentTags(doc, tag, tag.inlineTags(), false, false, htmltree); }
private static String print( Tag tag ) { final StringBuilder sb = new StringBuilder(); sb.append( tag.getClass() ).append( "[" ); sb.append( "firstSentenceTags=" ).append( toCSV( tag.firstSentenceTags() ) ); sb.append( ", inlineTags=" ).append( toCSV( tag.inlineTags() ) ); sb.append( ", kind=" ).append( tag.kind() ); sb.append( ", name=" ).append( tag.name() ); sb.append( ", text=" ).append( tag.text() ); sb.append( "]" ); return sb.toString(); }
/** * {@inheritDoc} */ public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.method.tags("return"); if (tags.length > 0) { output.holder = input.method; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
/** * {@inheritDoc} */ public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.method.seeTags(); if (tags.length > 0) { output.holder = input.method; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
@Override public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.element.tags(tagName); if (tags.length > 0) { output.holder = input.element; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
/** * {@inheritDoc} */ public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.element.seeTags(); if (tags.length > 0) { output.holder = input.element; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
/** * {@inheritDoc} */ public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.element.tags("return"); if (tags.length > 0) { output.holder = input.element; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
/** * Verifies that the named block tag exists at most <b>once</b>, replaces line breaks with spaces, and convert * its text to HTML. * * @return {@code null} iff the tag does not exist */ @Nullable public String optionalTag(Doc doc, String tagName, RootDoc rootDoc) throws Longjump { Tag t = Tags.optionalTag(doc, tagName, rootDoc); if (t == null) return null; return this.fromTags(t.inlineTags(), doc, rootDoc); }
/** * Verifies that the named block tag exists at most <b>once</b>, replaces line breaks with spaces, and convert * its text to HTML. * * @return {@code null} iff the tag does not exist */ @Nullable public String optionalTag(Doc doc, String tagName, RootDoc rootDoc) throws Longjump { Tag t = Tags.optionalTag(doc, tagName, rootDoc); if (t == null) return null; return this.fromTags(t.inlineTags(), doc, rootDoc); }
/** * {@inheritDoc} */ public Content simpleTagOutput(Tag simpleTag, String header) { ContentBuilder result = new ContentBuilder(); result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); Content body = htmlWriter.commentTagsToContent( simpleTag, null, simpleTag.inlineTags(), false); result.addContent(HtmlTree.DD(body)); return result; }
/** * {@inheritDoc} */ public TagletOutput simpleTagOutput( Tag simpleTag, String header ) { TagletOutputImpl result = new TagletOutputImpl(); result.append( DT_STRONG ); result.append( header ); result.append( DT_STRONG_CLOSE ).append( DD ); result.append( htmlWriter.commentTagsToString( simpleTag, null, simpleTag.inlineTags(), false ) ); return result.append( DD_CLOSE ); }
/** * {@inheritDoc} */ public Content returnTagOutput(Tag returnTag) { ContentBuilder result = new ContentBuilder(); result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel, new StringContent(configuration.getText("doclet.Returns"))))); result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent( returnTag, null, returnTag.inlineTags(), false))); return result; }
/** * {@inheritDoc} */ public TagletOutput returnTagOutput( Tag returnTag ) { final TagletOutputImpl result = new TagletOutputImpl(); result.append( DT_STRONG ); result.append( htmlWriter.configuration.getText( "doclet.Returns" ) ); result.append( DT_STRONG_CLOSE ).append( DD ); result.append( htmlWriter.commentTagsToString( returnTag, null, returnTag.inlineTags(), false ) ); return result.append( DD_CLOSE ); }
/** * {@inheritDoc} */ public Content simpleTagOutput(Tag[] simpleTags, String header) { ContentBuilder result = new ContentBuilder(); result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); ContentBuilder body = new ContentBuilder(); for (int i = 0; i < simpleTags.length; i++) { if (i > 0) { body.addContent(", "); } body.addContent(htmlWriter.commentTagsToContent( simpleTags[i], null, simpleTags[i].inlineTags(), false)); } result.addContent(HtmlTree.DD(body)); return result; }