Java Code Examples for com.sun.tools.javac.sym.Profiles

The following examples show how to use com.sun.tools.javac.sym.Profiles. These examples are extracted from open source projects. 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
/**
 * {@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
/**
 * {@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);
}
 
Example 3
/**
 * {@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
/**
 * {@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);
}
 
Example 5
/**
 * {@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
/**
 * {@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);
}
 
Example 7
/**
 * {@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
/**
 * {@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);
}
 
Example 9
/**
 * {@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 10
/**
 * {@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);
}
 
Example 11
/**
 * {@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 12
/**
 * {@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);
}
 
Example 13
/**
 * {@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 14
/**
 * {@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);
}
 
Example 15
/**
 * 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 16
/**
 * 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);
}
 
Example 17
Source Project: TencentKona-8   Source File: ProfileTest.java    License: 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
/**
 * 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
/**
 * 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);
}
 
Example 20
Source Project: jdk8u60   Source File: ProfileTest.java    License: 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 21
/**
 * 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 22
/**
 * 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);
}
 
Example 23
Source Project: openjdk-jdk8u   Source File: ProfileTest.java    License: 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 24
/**
 * 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 25
/**
 * 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);
}
 
Example 26
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 27
/**
 * 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 28
/**
 * 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);
}
 
Example 29
Source Project: hottub   Source File: ProfileTest.java    License: 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 30
/**
 * 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);
    }
}