com.sun.javadoc.Doc.inlineTags()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(171)

本文整理了Java中com.sun.javadoc.Doc.inlineTags()方法的一些代码示例,展示了Doc.inlineTags()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Doc.inlineTags()方法的具体详情如下:
包路径:com.sun.javadoc.Doc
类名称:Doc
方法名:inlineTags

Doc.inlineTags介绍

[英]Return comment as an array of tags. Includes inline tags (i.e. {@link reference} tags) but not block tags. Each section of plain text is represented as a Tagof Tag#kind() "Text". Inline tags are represented as a SeeTag of kind "@see" and name "@link".
[中]以标记数组的形式返回注释。包括内联标记(即{@link reference}标记),但不包括块标记。纯文本的每一部分都表示为Tagof标记#kind()“text”。内联标记表示为类型为“@see”和名称为“@link”的SeeTag。

代码示例

代码示例来源:origin: konsoletyper/teavm-javac

  1. /**
  2. * Adds the inline comment.
  3. *
  4. * @param doc the doc for which the inline comments will be generated
  5. * @param htmltree the documentation tree to which the inline comments will be added
  6. */
  7. public void addInlineComment(Doc doc, Content htmltree) {
  8. addCommentTags(doc, doc.inlineTags(), false, false, htmltree);
  9. }

代码示例来源:origin: uk.org.retep.doclet/core

  1. public void printInlineDeprecatedComment( Doc doc )
  2. {
  3. printCommentTags( doc, doc.inlineTags(), true, false );
  4. }

代码示例来源:origin: uk.org.retep.doclet/core

  1. public void printInlineComment( Doc doc )
  2. {
  3. printCommentTags( doc, doc.inlineTags(), false, false );
  4. p();
  5. }

代码示例来源:origin: io.atlassian.json-schemagen/json-schemagen-scanner

  1. private static String getDocWithIncludes(Doc doc)
  2. {
  3. StringBuilder sb = new StringBuilder();
  4. if (!Strings.isNullOrEmpty(doc.commentText()))
  5. {
  6. for (Tag tag : doc.inlineTags())
  7. {
  8. if (tag.kind().equals(TEXT_TAG))
  9. {
  10. sb.append(P).append(tag.text());
  11. }
  12. else if (tag.kind().equals(SEE_TAG))
  13. {
  14. sb.append(getIncludeFromLink((SeeTag) tag));
  15. }
  16. }
  17. //sb.append(doc.commentText()).append(LS).append(LS);
  18. }
  19. String example = getExamples(doc);
  20. if (!Strings.isNullOrEmpty(example))
  21. {
  22. sb.append(example);
  23. }
  24. return sb.toString();
  25. }

代码示例来源:origin: de.unkrig.commons/commons-doclet

  1. htmlText += this.fromTags(doc.inlineTags(), doc, rootDoc);

代码示例来源:origin: de.unkrig/de-unkrig-commons

  1. htmlText += this.fromTags(doc.inlineTags(), doc, rootDoc);

代码示例来源:origin: de.smartics.util/project-analysis-javadoc

  1. for (Tag tag : doc.inlineTags())

代码示例来源:origin: uk.org.retep.doclet/core

  1. Taglet[] taglets, TagletWriter writer, TagletOutput output) {
  2. tagletManager.checkTags(doc, doc.tags(), false);
  3. tagletManager.checkTags(doc, doc.inlineTags(), true);
  4. TagletOutput currentOutput = null;
  5. for (int i = 0; i < taglets.length; i++) {

代码示例来源:origin: konsoletyper/teavm-javac

  1. Taglet[] taglets, TagletWriter writer, Content output) {
  2. tagletManager.checkTags(doc, doc.tags(), false);
  3. tagletManager.checkTags(doc, doc.inlineTags(), true);
  4. Content currentOutput = null;
  5. for (int i = 0; i < taglets.length; i++) {

相关文章