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

Java Profiles类代码示例

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

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



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

示例1: addProfilesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
protected void addProfilesList(Profiles profiles, String text,
        String tableSummary, Content body) {
    Content heading = HtmlTree.HEADING(HtmlConstants.PROFILE_HEADING, true,
            profilesLabel);
    Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);
    HtmlTree ul = new HtmlTree(HtmlTag.UL);
    ul.setTitle(profilesLabel);
    String profileName;
    for (int i = 1; i < profiles.getProfileCount(); i++) {
        profileName = (Profile.lookup(i)).name;
        // If the profile has valid packages to be documented, add it to the
        // left-frame generated for profile index.
        if (configuration.shouldDocumentProfile(profileName))
            ul.addContent(getProfile(profileName));
    }
    div.addContent(ul);
    body.addContent(div);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:ProfileIndexFrameWriter.java


示例2: addProfilePackagesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
protected void addProfilePackagesList(Profiles profiles, String text,
        String tableSummary, Content body, String profileName) {
    Content profNameContent = new StringContent(profileName);
    Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
            getTargetProfileLink("classFrame", profNameContent, profileName));
    heading.addContent(getSpace());
    heading.addContent(packagesLabel);
    Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);
    HtmlTree ul = new HtmlTree(HtmlTag.UL);
    ul.setTitle(packagesLabel);
    PackageDoc[] packages = configuration.profilePackages.get(profileName);
    for (int i = 0; i < packages.length; i++) {
        if ((!(configuration.nodeprecated && Util.isDeprecated(packages[i])))) {
            ul.addContent(getPackage(packages[i], profileName));
        }
    }
    div.addContent(ul);
    body.addContent(div);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:ProfilePackageIndexFrameWriter.java


示例3: addIndexContents

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * Adds profile index contents. Call appropriate methods from
 * the sub-classes. Adds it to the body HtmlTree
 *
 * @param profiles profiles to be documented
 * @param text string which will be used as the heading
 * @param tableSummary summary for the table
 * @param body the document tree to which the index contents will be added
 */
protected void addIndexContents(Profiles profiles, String text,
        String tableSummary, Content body) {
    if (profiles.getProfileCount() > 0) {
        HtmlTree div = new HtmlTree(HtmlTag.DIV);
        div.addStyle(HtmlStyle.indexHeader);
        addAllClassesLink(div);
        addAllPackagesLink(div);
        body.addContent(div);
        addProfilesList(profiles, text, tableSummary, body);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:AbstractProfileIndexWriter.java


示例4: addProfilePackagesIndexContents

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * Adds profile packages index contents. Call appropriate methods from
 * the sub-classes. Adds it to the body HtmlTree
 *
 * @param profiles profiles to be documented
 * @param text string which will be used as the heading
 * @param tableSummary summary for the table
 * @param body the document tree to which the index contents will be added
 * @param profileName the name of the profile being documented
 */
protected void addProfilePackagesIndexContents(Profiles profiles, String text,
        String tableSummary, Content body, String profileName) {
    HtmlTree div = new HtmlTree(HtmlTag.DIV);
    div.addStyle(HtmlStyle.indexHeader);
    addAllClassesLink(div);
    addAllPackagesLink(div);
    addAllProfilesLink(div);
    body.addContent(div);
    addProfilePackagesList(profiles, text, tableSummary, body, profileName);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:AbstractProfileIndexWriter.java


示例5: checkProfile

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
void checkProfile(File profileDesc, String base) throws IOException {
    Profiles p = Profiles.read(profileDesc);
    for (int i = 0; i < p.getProfileCount(); i++) {
        System.err.println(p.getPackages(i));
        for (String pkg: p.getPackages(i)) {
            if (!pkg.endsWith(base))
                error("unexpected package " + pkg + " for profile " + i);
        }
    }
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:11,代码来源:ProfileTest.java


示例6: addProfilePackagesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
protected void addProfilePackagesList(Profiles profiles, String text,
        String tableSummary, Content body, String profileName) {
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ProfileIndexFrameWriter.java


示例7: addProfilesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
protected void addProfilesList(Profiles profiles, String text,
        String tableSummary, Content body) {
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ProfilePackageIndexFrameWriter.java


示例8: addProfilesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * Adds the profiles list to the documentation tree.
 *
 * @param profiles profiles object
 * @param text caption for the table
 * @param tableSummary summary for the table
 * @param body the document tree to which the profiles list will be added
 */
protected abstract void addProfilesList(Profiles profiles, String text,
        String tableSummary, Content body);
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:AbstractProfileIndexWriter.java


示例9: addProfilePackagesList

import com.sun.tools.javac.sym.Profiles; //导入依赖的package包/类
/**
 * Adds the profile packages list to the documentation tree.
 *
 * @param profiles profiles object
 * @param text caption for the table
 * @param tableSummary summary for the table
 * @param body the document tree to which the profiles list will be added
 * @param profileName the name for the profile being documented
 */
protected abstract void addProfilePackagesList(Profiles profiles, String text,
        String tableSummary, Content body, String profileName);
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:AbstractProfileIndexWriter.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java FloatBoundsUtils类代码示例发布时间:2022-05-23
下一篇:
Java BoundingBox类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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