wt.tools.xref
Class cdc

java.lang.Object
  extended bywt.tools.xref.cdc
All Implemented Interfaces:
ProcessFileInterface

public class cdc
extends Object
implements ProcessFileInterface

This class performs Circular Dependency Checking of a set of .class files in a particular codebase


Field Summary
(package private)  Hashtable d_downwardDependencies
           
(package private)  Hashtable d_upwardDependencies
           
 
Constructor Summary
cdc()
           
 
Method Summary
(package private)  void addToHashtable(Hashtable theHashTable, String classSpec)
          This convenience method is intended to simplify the task of adding objects to the dependency Hashtables.
(package private)  boolean circularDependencyCheck(Hashtable ht, String currentClassName, String dependentClassName)
           
 boolean directoryNameOk(String directoryName)
          this method is provided so that the application can validate whether or not the specified directory is ok or not
 boolean fileTypeOk(String fileName)
          This method is provided for the developer in case they do not want to process every single file in every directory.
static void main(String[] args)
           
 void processDirectory(String directoryName)
          This method is provided for the developer in case they want to do something each time they enter a new directory
 void processFile(String fileName)
          this method is provided for the developer in case they want to do something each time a file is encountered in a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_downwardDependencies

Hashtable d_downwardDependencies

d_upwardDependencies

Hashtable d_upwardDependencies
Constructor Detail

cdc

public cdc()
Method Detail

processDirectory

public void processDirectory(String directoryName)
Description copied from interface: ProcessFileInterface
This method is provided for the developer in case they want to do something each time they enter a new directory

Specified by:
processDirectory in interface ProcessFileInterface

directoryNameOk

public boolean directoryNameOk(String directoryName)
Description copied from interface: ProcessFileInterface
this method is provided so that the application can validate whether or not the specified directory is ok or not

Specified by:
directoryNameOk in interface ProcessFileInterface

addToHashtable

void addToHashtable(Hashtable theHashTable,
                    String classSpec)
This convenience method is intended to simplify the task of adding objects to the dependency Hashtables.


processFile

public void processFile(String fileName)
Description copied from interface: ProcessFileInterface
this method is provided for the developer in case they want to do something each time a file is encountered in a directory.

Specified by:
processFile in interface ProcessFileInterface

circularDependencyCheck

boolean circularDependencyCheck(Hashtable ht,
                                String currentClassName,
                                String dependentClassName)

fileTypeOk

public boolean fileTypeOk(String fileName)
Description copied from interface: ProcessFileInterface
This method is provided for the developer in case they do not want to process every single file in every directory. They can then use this method to filter out the files they do not want to process.

Specified by:
fileTypeOk in interface ProcessFileInterface

main

public static void main(String[] args)