当前位置: 首页>>代码示例>>Java>>正文


Java Profiles类代码示例

本文整理汇总了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;未经允许,请勿转载。