Package com.sun.tools.javac.jvm

Examples of com.sun.tools.javac.jvm.Profile


            }
        }

        String profileString = options.get(PROFILE);
        if (profileString != null) {
            Profile profile = Profile.lookup(profileString);
            if (!profile.isValid(target)) {
                warning("warn.profile.target.conflict", profileString, target.name);
                return null;
            }
        }
View Full Code Here


                continue;
            }
            // the getProfile method takes a type name, not a package name,
            // but isn't particularly fussy about the simple name -- so just use *
            int i = profiles.getProfile(pkg.name().replace(".", "/") + "/*");
            Profile p = Profile.lookup(i);
            if (p != null) {
                List<PackageDoc> pkgs = interimResults.get(p);
                pkgs.add(pkg);
            }
        }

        // Build the profilePackages structure used by the doclet
        profilePackages = new HashMap<String,PackageDoc[]>();
        List<PackageDoc> prev = Collections.<PackageDoc>emptyList();
        int size;
        for (Map.Entry<Profile,List<PackageDoc>> e: interimResults.entrySet()) {
            Profile p = e.getKey();
            List<PackageDoc> pkgs =  e.getValue();
            pkgs.addAll(prev); // each profile contains all lower profiles
            Collections.sort(pkgs);
            size = pkgs.size();
            // For a profile, if there are no packages to be documented, do not add
View Full Code Here

     * {@inheritDoc}
     */
    protected void generateProfileFiles() throws Exception {
        if (configuration.showProfiles && configuration.profilePackages.size() > 0) {
            ProfileIndexFrameWriter.generate(configuration);
            Profile prevProfile = null, nextProfile;
            String profileName;
            for (int i = 1; i < configuration.profiles.getProfileCount(); i++) {
                profileName = Profile.lookup(i).name;
                // Generate profile package pages only if there are any packages
                // in a profile to be documented. The profilePackages map will not
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.jvm.Profile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.