• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java DeprecatedAPIListBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder的典型用法代码示例。如果您正苦于以下问题:Java DeprecatedAPIListBuilder类的具体用法?Java DeprecatedAPIListBuilder怎么用?Java DeprecatedAPIListBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DeprecatedAPIListBuilder类属于com.sun.tools.doclets.internal.toolkit.util包,在下文中一共展示了DeprecatedAPIListBuilder类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: generate

import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入依赖的package包/类
/**
 * Get list of all the deprecated classes and members in all the Packages
 * specified on the Command Line.
 * Then instantiate DeprecatedListWriter and generate File.
 *
 * @param configuration the current configuration of the doclet.
 */
public static void generate(ConfigurationImpl configuration) {
    String filename = "deprecated-list.html";
    try {
        DeprecatedListWriter depr =
               new DeprecatedListWriter(configuration, filename);
        depr.generateDeprecatedListFile(
               new DeprecatedAPIListBuilder(configuration.root));
        depr.close();
    } catch (IOException exc) {
        configuration.standardmessage.error(
                    "doclet.exception_encountered",
                    exc.toString(), filename);
        throw new DocletAbortException();
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:23,代码来源:DeprecatedListWriter.java


示例2: 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();
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:28,代码来源:DeprecatedListWriter.java


示例3: generate

import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入依赖的package包/类
/**
 * Get list of all the deprecated classes and members in all the Packages
 * specified on the Command Line.
 * Then instantiate DeprecatedListWriter and generate File.
 *
 * @param configuration the current configuration of the doclet.
 */
public static void generate(ConfigurationImpl configuration) {
    String filename = "deprecated-list.html";
    try {
        DeprecatedListWriter depr =
               new DeprecatedListWriter(configuration, filename);
        depr.generateDeprecatedListFile(
               new DeprecatedAPIListBuilder(configuration));
        depr.close();
    } catch (IOException exc) {
        configuration.standardmessage.error(
                    "doclet.exception_encountered",
                    exc.toString(), filename);
        throw new DocletAbortException();
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:23,代码来源:DeprecatedListWriter.java


示例4: getContentsList

import com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder; //导入依赖的package包/类
/**
 * Get the contents list.
 *
 * @param deprapi the deprecated list builder
 * @return a content tree for the contents list
 */
public Content getContentsList(DeprecatedAPIListBuilder deprapi) {
    Content headContent = getResource("doclet.Deprecated_API");
    Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
            HtmlStyle.title, headContent);
    Content div = HtmlTree.DIV(HtmlStyle.header, heading);
    Content headingContent = getResource("doclet.Contents");
    div.addContent(HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true,
            headingContent));
    Content ul = new HtmlTree(HtmlTag.UL);
    for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
        addIndexLink(deprapi, i, ul);
    }
    div.addContent(ul);
    return div;
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:22,代码来源:DeprecatedListWriter.java


示例5: 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();
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:10,代码来源:DeprecatedListWriter.java


示例6: 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);
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:39,代码来源:DeprecatedListWriter.java


示例7: 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);
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:16,代码来源:DeprecatedListWriter.java


示例8: 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]);
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:6,代码来源:DeprecatedListWriter.java


示例9: 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]));
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:13,代码来源:DeprecatedListWriter.java



注:本文中的com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java OnNewIntentEvent类代码示例发布时间:1970-01-01
下一篇:
Java ChildrenDiff类代码示例发布时间:1970-01-01
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap