|
DocCheck 1.2 Beta 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sun.tools.doclets.util.PackageList
Generates a list of packages under the specified root directory(s).
Writes the list to standard output when run from the command line,
or returns it as a LinkedList when the findPkgs(java.io.File, java.io.File) method is
invoked.
| Field Summary | |
static java.util.LinkedList |
namesToSkip
A list of directory names to be skipped anywhere they appear in the hierarchy. |
static java.util.LinkedList |
pkgsToSkip
A list of fully-qualified directory paths to be skipped. |
| Constructor Summary | |
PackageList()
|
|
| Method Summary | |
protected static void |
echoUsage()
Delivers usage instructions when the program is invoked with no arguments. |
static java.util.LinkedList |
findPkgs(java.io.File root,
java.io.File dir)
Recursively searches a directory and returns a list of package names corresponding to directories that (a) contain .java or .class files and (b) are not in either of the "skip lists" specified on the command line. |
static void |
main(java.lang.String[] args)
Recursively searches the list of directories specified on the command line and identifies Java packages. |
static java.lang.String |
pkgName(java.io.File root,
java.io.File dir)
Return the package name corresponding to the specified directory. |
protected static void |
processArgs(java.lang.String[] args)
Process the command line to |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.util.LinkedList namesToSkip
processArgs(java.lang.String[]) method
to do all the setup work.
Specifierpublic static java.util.LinkedList pkgsToSkip
processArgs(java.lang.String[]) method
to do all the setup work.
PathSpecifier| Constructor Detail |
public PackageList()
| Method Detail |
public static void main(java.lang.String[] args)
echoUsage() or run the program with no arguments.
public static java.util.LinkedList findPkgs(java.io.File root,
java.io.File dir)
processArgs(java.lang.String[]) method to specify
a list of directories to process as well as lists of packages to
skip, or else manually set the namesToSkip and pkgsToSkip
lists before invoking this method.
root - The root of the package tree.dir - The directory to search.
public static java.lang.String pkgName(java.io.File root,
java.io.File dir)
root - The root of the package tree.dir - The directory to convert to a package name.protected static void echoUsage()
protected static void processArgs(java.lang.String[] args)
|
DocCheck 1.2 Beta 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||