本文整理了Java中com.sun.javadoc.Doc.inlineTags()
方法的一些代码示例,展示了Doc.inlineTags()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Doc.inlineTags()
方法的具体详情如下:
包路径:com.sun.javadoc.Doc
类名称: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
/**
* Adds the inline comment.
*
* @param doc the doc for which the inline comments will be generated
* @param htmltree the documentation tree to which the inline comments will be added
*/
public void addInlineComment(Doc doc, Content htmltree) {
addCommentTags(doc, doc.inlineTags(), false, false, htmltree);
}
代码示例来源:origin: uk.org.retep.doclet/core
public void printInlineDeprecatedComment( Doc doc )
{
printCommentTags( doc, doc.inlineTags(), true, false );
}
代码示例来源:origin: uk.org.retep.doclet/core
public void printInlineComment( Doc doc )
{
printCommentTags( doc, doc.inlineTags(), false, false );
p();
}
代码示例来源:origin: io.atlassian.json-schemagen/json-schemagen-scanner
private static String getDocWithIncludes(Doc doc)
{
StringBuilder sb = new StringBuilder();
if (!Strings.isNullOrEmpty(doc.commentText()))
{
for (Tag tag : doc.inlineTags())
{
if (tag.kind().equals(TEXT_TAG))
{
sb.append(P).append(tag.text());
}
else if (tag.kind().equals(SEE_TAG))
{
sb.append(getIncludeFromLink((SeeTag) tag));
}
}
//sb.append(doc.commentText()).append(LS).append(LS);
}
String example = getExamples(doc);
if (!Strings.isNullOrEmpty(example))
{
sb.append(example);
}
return sb.toString();
}
代码示例来源:origin: de.unkrig.commons/commons-doclet
htmlText += this.fromTags(doc.inlineTags(), doc, rootDoc);
代码示例来源:origin: de.unkrig/de-unkrig-commons
htmlText += this.fromTags(doc.inlineTags(), doc, rootDoc);
代码示例来源:origin: de.smartics.util/project-analysis-javadoc
for (Tag tag : doc.inlineTags())
代码示例来源:origin: uk.org.retep.doclet/core
Taglet[] taglets, TagletWriter writer, TagletOutput output) {
tagletManager.checkTags(doc, doc.tags(), false);
tagletManager.checkTags(doc, doc.inlineTags(), true);
TagletOutput currentOutput = null;
for (int i = 0; i < taglets.length; i++) {
代码示例来源:origin: konsoletyper/teavm-javac
Taglet[] taglets, TagletWriter writer, Content output) {
tagletManager.checkTags(doc, doc.tags(), false);
tagletManager.checkTags(doc, doc.inlineTags(), true);
Content currentOutput = null;
for (int i = 0; i < taglets.length; i++) {
内容来源于网络,如有侵权,请联系作者删除!