@Override public PackageDoc[] specifiedPackages() { return delegate.specifiedPackages(); }
public PackageDoc[] specifiedPackages() { return root.specifiedPackages(); }
public PackageDoc[] specifiedPackages() { return wrapped.specifiedPackages(); }
private void initPackageArray() { Set<PackageDoc> set = new HashSet<PackageDoc>(Arrays.asList(root.specifiedPackages())); ClassDoc[] classes = root.specifiedClasses(); for (int i = 0; i < classes.length; i++) { set.add(classes[i].containingPackage()); } ArrayList<PackageDoc> results = new ArrayList<PackageDoc>(set); Collections.sort(results); packages = results.toArray(new PackageDoc[] {}); }
private void initPackageArray() { Set<PackageDoc> set = new HashSet<PackageDoc>(Arrays.asList(root.specifiedPackages())); ClassDoc[] classes = root.specifiedClasses(); for (int i = 0; i < classes.length; i++) { set.add(classes[i].containingPackage()); } ArrayList<PackageDoc> results = new ArrayList<PackageDoc>(set); Collections.sort(results); packages = results.toArray(new PackageDoc[] {}); }
public static boolean start(RootDoc root) { System.out.println( ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName()); RootDoc excludedDoc = RootDocProcessor.process(root); if (excludedDoc.specifiedPackages().length == 0) { return true; } return Standard.start(excludedDoc); }
/** * Constructor to construct PackageFrameWriter object and to generate * "package-frame.html" file in the respective package directory. * For example for package "java.lang" this will generate file * "package-frame.html" file in the "java/lang" directory. It will also * create "java/lang" directory in the current or the destination directory * if it doesn't exist. * * @param configuration the configuration of the doclet. * @param packageDoc PackageDoc under consideration. */ public PackageFrameWriter(ConfigurationImpl configuration, PackageDoc packageDoc) throws IOException { super(configuration, DocPath.forPackage(packageDoc).resolve(DocPaths.PACKAGE_FRAME)); this.packageDoc = packageDoc; if (configuration.root.specifiedPackages().length == 0) { documentedClasses = new HashSet<ClassDoc>(Arrays.asList(configuration.root.classes())); } }
/** * Constructor to construct PackageFrameWriter object and to generate * "package-frame.html" file in the respective package directory. * For example for package "java.lang" this will generate file * "package-frame.html" file in the "java/lang" directory. It will also * create "java/lang" directory in the current or the destination directory * if it doesen't exist. * * @param configuration the configuration of the doclet. * @param packageDoc PackageDoc under consideration. */ public PackageFrameWriter( ConfigurationImpl configuration, PackageDoc packageDoc ) throws IOException { super( configuration, DirectoryManager.getDirectoryPath( packageDoc ), OUTPUT_FILE_NAME, DirectoryManager.getRelativePath( packageDoc ) ); this.packageDoc = packageDoc; if( configuration.root.specifiedPackages().length == 0 ) { documentedClasses = new HashSet<ClassDoc>( Arrays.asList( configuration.root.classes() ) ); } }
/** * Iterate through all classes and construct documentation for them. * * @param root the RootDoc of source to document. * @param classtree the data structure representing the class tree. */ protected void generateClassFiles(RootDoc root, ClassTree classtree) { generateClassFiles(classtree); PackageDoc[] packages = root.specifiedPackages(); for (int i = 0; i < packages.length; i++) { generateClassFiles(packages[i].allClasses(), classtree); } }
/** * Iterate through all classes and construct documentation for them. * * @param root the RootDoc of source to document. * @param classtree the data structure representing the class tree. */ protected void generateClassFiles(RootDoc root, ClassTree classtree) { generateClassFiles(classtree); PackageDoc[] packages = root.specifiedPackages(); for (int i = 0; i < packages.length; i++) { generateClassFiles(packages[i].allClasses(), classtree); } }
PackageDoc[] packages = root.specifiedPackages(); ClassDoc[] classes = root.classes(); if (!classesOnly) {
PackageDoc[] packages = root.specifiedPackages(); ClassDoc[] classes = root.classes(); if (!classesOnly) {
/** * Convert the Classes in the given RootDoc to an HTML. * @param configuration the configuration. * @param rd the RootDoc to convert. * @param outputdir the name of the directory to output to. */ public static void convertRoot(Configuration configuration, RootDoc rd, String outputdir) { if (rd == null || outputdir == null) { return; } PackageDoc[] pds = rd.specifiedPackages(); for (int i = 0; i < pds.length; i++) { convertPackage(configuration, pds[i], outputdir); } ClassDoc[] cds = rd.specifiedClasses(); for (int i = 0; i < cds.length; i++) { convertClass(configuration, cds[i], getPackageOutputDir(outputdir, cds[i].containingPackage())); } }
return filter(((RootDoc) target).specifiedClasses(), ClassDoc.class); } else if (methodName.equals("specifiedPackages")) { return filter(((RootDoc) target).specifiedPackages(), PackageDoc.class);
return filter(((RootDoc) target).specifiedClasses(), ClassDoc.class); } else if (methodName.equals("specifiedPackages")) { return filter(((RootDoc) target).specifiedPackages(), PackageDoc.class);
return filter(((RootDoc) target).specifiedClasses(), ClassDoc.class); } else if (methodName.equals("specifiedPackages")) { return filter(((RootDoc) target).specifiedPackages(), PackageDoc.class);
return filter(((RootDoc) target).specifiedClasses(), ClassDoc.class); } else if (methodName.equals("specifiedPackages")) { return filter(((RootDoc) target).specifiedPackages(), PackageDoc.class);
/** * Get "Tree" link in the navigation bar. If there is only one package * specified on the command line, then the "Tree" link will be to the * only "package-tree.html" file otherwise it will be to the * "overview-tree.html" file. * * @return a content tree for the link */ protected Content getNavLinkTree() { Content treeLinkContent; PackageDoc[] packages = configuration.root.specifiedPackages(); if (packages.length == 1 && configuration.root.specifiedClasses().length == 0) { treeLinkContent = getHyperLink(pathString(packages[0], DocPaths.PACKAGE_TREE), treeLabel, "", ""); } else { treeLinkContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), treeLabel, "", ""); } Content li = HtmlTree.LI(treeLinkContent); return li; }
void generate() { if (rootDoc == null || outputdir == null) { return; } PackageDoc[] pds = rootDoc.specifiedPackages(); for (int i = 0; i < pds.length; i++) { // If -nodeprecated option is set and the package is marked as deprecated, // do not convert the package files to HTML. if (!(configuration.nodeprecated && Util.isDeprecated(pds[i]))) convertPackage(pds[i], outputdir); } ClassDoc[] cds = rootDoc.specifiedClasses(); for (int i = 0; i < cds.length; i++) { // If -nodeprecated option is set and the class is marked as deprecated // or the containing package is deprecated, do not convert the // package files to HTML. if (!(configuration.nodeprecated && (Util.isDeprecated(cds[i]) || Util.isDeprecated(cds[i].containingPackage())))) convertClass(cds[i], outputdir); } }
/** * Print "Tree" link in the navigation bar. If there is only one package * specified on the command line, then the "Tree" link will be to the * only "package-tree.html" file otherwise it will be to the * "overview-tree.html" file. */ protected void navLinkTree() { navCellStart(); PackageDoc[] packages = configuration.root.specifiedPackages(); if( packages.length == 1 && configuration.root.specifiedClasses().length == 0 ) { printHyperLink( pathString( packages[0], "package-tree.html" ), "", configuration.getText( "doclet.Tree" ), true, null ); } else { printHyperLink( relativePath + "overview-tree.html", "", configuration.getText( "doclet.Tree" ), true, null ); } navCellEnd(); }