protected void generatePackageFiles(ClassTree classtree) throws Exception {
        Set<PackageDoc> packages = configuration.packages;
        if (packages.size() > 1) {
            PackageIndexFrameWriter.generate(configuration);
        }
        List<PackageDoc> pList = new ArrayList<>(configuration.packages);
        PackageDoc prev = null, next;
        for (int i = 0; i < pList.size(); i++) {
            // if -nodeprecated option is set and the package is marked as
            // deprecated, do not generate the package-summary.html, package-frame.html
            // and package-tree.html pages for that package.
            PackageDoc pkg = pList.get(i);
            if (!(configuration.nodeprecated && utils.isDeprecated(pkg))) {
                PackageFrameWriter.generate(configuration, pkg);
                next = getNamedPackage(pList, i + 1);
                //If the next package is unnamed package, skip 2 ahead if possible
                if (next == null)
                    next = getNamedPackage(pList, i + 2);
                AbstractBuilder packageSummaryBuilder =
                        configuration.getBuilderFactory().getPackageSummaryBuilder(
                        pkg, prev, next);
                packageSummaryBuilder.build();
                if (configuration.createtree) {
                    PackageTreeWriter.generate(configuration,
                            pkg, prev, next,
                            configuration.nodeprecated);
                }
                prev = pkg;
            }
        }
    }
protected void generatePackageFiles ( ClassTree classtree ) throws Exception { Set < PackageDoc > packages = configuration . packages ; if ( packages . size ( ) > 1 ) { PackageIndexFrameWriter . generate ( configuration ) ; } List < PackageDoc > pList = new ArrayList < > ( configuration . packages ) ; PackageDoc prev = null , next ; for ( int i = 0 ; i < pList . size ( ) ; i ++ ) { PackageDoc pkg = pList . get ( i ) ; if ( ! ( configuration . nodeprecated && utils . isDeprecated ( pkg ) ) ) { PackageFrameWriter . generate ( configuration , pkg ) ; next = getNamedPackage ( pList , i + 1 ) ; if ( next == null ) next = getNamedPackage ( pList , i + 2 ) ; AbstractBuilder packageSummaryBuilder = configuration . getBuilderFactory ( ) . getPackageSummaryBuilder ( pkg , prev , next ) ; packageSummaryBuilder . build ( ) ; if ( configuration . createtree ) { PackageTreeWriter . generate ( configuration , pkg , prev , next , configuration . nodeprecated ) ; } prev = pkg ; } } }
{@inheritDoc}