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

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

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

Doc.seeTags介绍

[英]Return the see also tags in this Doc item.
[中]

代码示例

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public Content getTagletOutput(Doc holder, TagletWriter writer) {
  5. SeeTag[] tags = holder.seeTags();
  6. if (tags.length == 0 && holder instanceof MethodDoc) {
  7. DocFinder.Output inheritedDoc =
  8. DocFinder.search(new DocFinder.Input((MethodDoc) holder, this));
  9. if (inheritedDoc.holder != null) {
  10. tags = inheritedDoc.holder.seeTags();
  11. }
  12. }
  13. return writer.seeTagOutput(holder, tags);
  14. }
  15. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) {
  5. SeeTag[] tags = holder.seeTags();
  6. if (tags.length == 0 && holder instanceof MethodDoc) {
  7. DocFinder.Output inheritedDoc =
  8. DocFinder.search(new DocFinder.Input((MethodDoc) holder, this));
  9. if (inheritedDoc.holder != null) {
  10. tags = inheritedDoc.holder.seeTags();
  11. }
  12. }
  13. return writer.seeTagOutput(holder, tags);
  14. }
  15. }

相关文章