com.sun.tools.javac.sym.Profiles Java Examples
The following examples show how to use
com.sun.tools.javac.sym.Profiles.
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-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * {@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 hottub with GNU General Public License v2.0 | 6 votes |
/** * {@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 |
/** * {@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: ProfilePackageIndexFrameWriter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * {@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
Source File: ProfilePackageIndexFrameWriter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * {@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 #6
Source File: ProfilePackageIndexFrameWriter.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * {@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
Source File: ProfileIndexFrameWriter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * {@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: ProfileIndexFrameWriter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * {@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 #9
Source File: ProfilePackageIndexFrameWriter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * {@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 #10
Source File: ProfileIndexFrameWriter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * {@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 #11
Source File: ProfilePackageIndexFrameWriter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * {@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 #12
Source File: ProfilePackageIndexFrameWriter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * {@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
Source File: ProfileIndexFrameWriter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * {@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
Source File: ProfilePackageIndexFrameWriter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * {@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
Source File: ProfileTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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: AbstractProfileIndexWriter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * 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 #18
Source File: AbstractProfileIndexWriter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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 #19
Source File: ProfileTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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 #21
Source File: ProfileTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 #22
Source File: AbstractProfileIndexWriter.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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 #23
Source File: AbstractProfileIndexWriter.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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 #24
Source File: ProfileTest.java From hottub with GNU General Public License v2.0 | 5 votes |
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 #25
Source File: AbstractProfileIndexWriter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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 #26
Source File: AbstractProfileIndexWriter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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 #27
Source File: ProfileTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 #28
Source File: AbstractProfileIndexWriter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * 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 #29
Source File: AbstractProfileIndexWriter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * 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 #30
Source File: ProfileTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); } } }