本文整理汇总了Java中com.sun.tools.doclets.internal.toolkit.util.DocFinder类的典型用法代码示例。如果您正苦于以下问题:Java DocFinder类的具体用法?Java DocFinder怎么用?Java DocFinder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DocFinder类属于com.sun.tools.doclets.internal.toolkit.util包,在下文中一共展示了DocFinder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTagletOutput
import com.sun.tools.doclets.internal.toolkit.util.DocFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see com.sun.tools.doclets.internal.toolkit.taglets.Taglet#getTagletOutput(com.sun.javadoc.Doc, com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter)
*/
@Override
public TagletOutput getTagletOutput(Doc doc, TagletWriter writer) throws IllegalArgumentException {
Tag[] tags = doc.tags(getName());
if (tags.length==0 && doc instanceof MethodDoc) { // inherit if necessary and possible
final DocFinder.Output inheritedDoc = DocFinder.search(new DocFinder.Input((MethodDoc) doc, this));
tags = inheritedDoc.holderTag == null ? tags : new Tag[] {inheritedDoc.holderTag};
}
if (tags.length==0)
return null;
final StringBuilder out = writeHeader(new StringBuilder());
for(Tag tag : tags) {
writeTag(out, tag, writer);
}
return new TagletOutputImpl(out.toString());
}
示例2: getTagletOutput
import com.sun.tools.doclets.internal.toolkit.util.DocFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public Content getTagletOutput(Doc doc, TagletWriter writer) throws IllegalArgumentException {
Tag[] tags = doc.tags(getName());
if (tags.length==0 && doc instanceof MethodDoc) { // inherit if necessary and possible
final DocFinder.Output inheritedDoc = DocFinder.search(new DocFinder.Input((MethodDoc) doc, this));
tags = inheritedDoc.holderTag == null ? tags : new Tag[] {inheritedDoc.holderTag};
}
if (tags.length==0)
return null;
final StringBuilder out = writeHeader(new StringBuilder());
for(Tag tag : tags) {
writeTag(out, tag, writer);
}
return new RawHtml(out.toString());
}
示例3: inherit
import com.sun.tools.doclets.internal.toolkit.util.DocFinder; //导入依赖的package包/类
@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();
}
}
示例4: inherit
import com.sun.tools.doclets.internal.toolkit.util.DocFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void inherit(DocFinder.Input input, DocFinder.Output output) {
if (input.element != null && input.element.isMethod()) {
final 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();
}
}
}
示例5: inherit
import com.sun.tools.doclets.internal.toolkit.util.DocFinder; //导入依赖的package包/类
/**
* Given an {@link com.sun.tools.doclets.internal.toolkit.util.DocFinder.Output}
* object, set its values with the appropriate information to inherit
* documentation.
*
* @param input the input for documentation search.
* @param output the output for documentation search.
*/
void inherit(DocFinder.Input input, DocFinder.Output output);