|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.vergil.actor.FindPackages
public class FindPackages
Look for class files under a directory and return package names.
Red (cxh) |
Red (cxh) |
Nested Class Summary | |
---|---|
private static class |
FindPackages.ClassFileFilter
Filter that returns true if the pathname ends with .class. |
private static class |
FindPackages.DirectoryFileFilter
Filter that returns true if the pathname is a directory. |
Constructor Summary | |
---|---|
FindPackages()
|
Method Summary | |
---|---|
private static void |
_getDirectories(java.io.File directory,
java.util.Set directoriesSeen,
java.util.Set classFilesSeen)
Recursivly descend the filesystem. |
static java.lang.String |
findPackages(java.io.File ptII,
ExecuteCommands executeCommands)
Look for class files under a directory and return package names. |
static void |
main(java.lang.String[] args)
Print out any packages found under the directory named by the first argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FindPackages()
Method Detail |
---|
public static java.lang.String findPackages(java.io.File ptII, ExecuteCommands executeCommands)
ptII
- The File under which to look for classes.executeCommands
- The ExecuteCommands object in which to report
status. If null, then print to standard out.
public static void main(java.lang.String[] args)
Usage: java -classpath $PTII ptolemy.vergil.actor.FindPackages $PTII
args
- An array of Strings, where the first argument is
a string that names the directory under which we search for packages.private static void _getDirectories(java.io.File directory, java.util.Set directoriesSeen, java.util.Set classFilesSeen)
directory
- The top level directory.directoriesSeen
- A Set of objects of type File
that name directories that have been seen.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |