本文整理汇总了Java中com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder.hasDocumentation方法的典型用法代码示例。如果您正苦于以下问题:Java DeprecatedAPIListBuilder.hasDocumentation方法的具体用法?Java DeprecatedAPIListBuilder.hasDocumentation怎么用?Java DeprecatedAPIListBuilder.hasDocumentation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder
的用法示例。
在下文中一共展示了DeprecatedAPIListBuilder.hasDocumentation方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateDeprecatedListFile
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
/**
* Print the deprecated API list. Separately print all class kinds and
* member kinds.
*
* @param deprapi list of deprecated API built already.
*/
protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi)
throws IOException {
writeHeader();
bold(configuration.getText("doclet.Contents"));
ul();
for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
writeIndexLink(deprapi, i);
}
ulEnd();
println();
for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
if (deprapi.hasDocumentation(i)) {
writeAnchor(deprapi, i);
writers[i].printDeprecatedAPI(deprapi.getList(i),
HEADING_KEYS[i]);
}
}
printDeprecatedFooter();
}
示例2: writeIndexLink
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
private void writeIndexLink(DeprecatedAPIListBuilder builder,
int type) {
if (builder.hasDocumentation(type)) {
li();
printHyperLink("#" + ANCHORS[type],
configuration.getText(HEADING_KEYS[type]));
println();
}
}
示例3: generateDeprecatedListFile
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
/**
* Generate the deprecated API list.
*
* @param deprapi list of deprecated API built already.
*/
protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi)
throws IOException {
Content body = getHeader();
body.addContent(getContentsList(deprapi));
String memberTableSummary;
String[] memberTableHeader = new String[1];
HtmlTree div = new HtmlTree(HtmlTag.DIV);
div.addStyle(HtmlStyle.contentContainer);
for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
if (deprapi.hasDocumentation(i)) {
addAnchor(deprapi, i, div);
memberTableSummary =
configuration.getText("doclet.Member_Table_Summary",
configuration.getText(HEADING_KEYS[i]),
configuration.getText(SUMMARY_KEYS[i]));
memberTableHeader[0] = configuration.getText("doclet.0_and_1",
configuration.getText(HEADER_KEYS[i]),
configuration.getText("doclet.Description"));
// DeprecatedAPIListBuilder.PACKAGE == 0, so if i == 0, it is
// a PackageDoc.
if (i == DeprecatedAPIListBuilder.PACKAGE)
addPackageDeprecatedAPI(deprapi.getList(i),
HEADING_KEYS[i], memberTableSummary, memberTableHeader, div);
else
writers[i - 1].addDeprecatedAPI(deprapi.getList(i),
HEADING_KEYS[i], memberTableSummary, memberTableHeader, div);
}
}
body.addContent(div);
addNavLinks(false, body);
addBottom(body);
printHtmlDocument(null, true, body);
}
示例4: addIndexLink
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
/**
* Add the index link.
*
* @param builder the deprecated list builder
* @param type the type of list being documented
* @param contentTree the content tree to which the index link will be added
*/
private void addIndexLink(DeprecatedAPIListBuilder builder,
int type, Content contentTree) {
if (builder.hasDocumentation(type)) {
Content li = HtmlTree.LI(getHyperLink("#" + ANCHORS[type],
getResource(HEADING_KEYS[type])));
contentTree.addContent(li);
}
}
示例5: writeAnchor
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
private void writeAnchor(DeprecatedAPIListBuilder builder, int type) {
if (builder.hasDocumentation(type)) {
anchor(ANCHORS[type]);
}
}
示例6: addAnchor
import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入方法依赖的package包/类
/**
* Add the anchor.
*
* @param builder the deprecated list builder
* @param type the type of list being documented
* @param contentTree the content tree to which the anchor will be added
*/
private void addAnchor(DeprecatedAPIListBuilder builder, int type, Content htmlTree) {
if (builder.hasDocumentation(type)) {
htmlTree.addContent(getMarkerAnchor(ANCHORS[type]));
}
}