Java Code Examples for com.sun.tools.javac.sym.Profiles#getProfileCount()

The following examples show how to use com.sun.tools.javac.sym.Profiles#getProfileCount() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProfileIndexFrameWriter.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 2
Source File: ProfileIndexFrameWriter.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 3
Source File: ProfileIndexFrameWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 4
Source File: ProfileIndexFrameWriter.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 5
Source File: ProfileIndexFrameWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 6
Source File: ProfileIndexFrameWriter.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 7
Source File: ProfileIndexFrameWriter.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@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);
}
 
Example 8
Source File: AbstractProfileIndexWriter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 9
Source File: AbstractProfileIndexWriter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 10
Source File: ProfileTest.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 11
Source File: AbstractProfileIndexWriter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 12
Source File: ProfileTest.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 13
Source File: AbstractProfileIndexWriter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 14
Source File: ProfileTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 15
Source File: ProfileTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 16
Source File: AbstractProfileIndexWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 17
Source File: ProfileTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 18
Source File: AbstractProfileIndexWriter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 19
Source File: ProfileTest.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
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);
        }
    }
}
 
Example 20
Source File: AbstractProfileIndexWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    }
}