|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.xref.pdl
wt.tools.xref.pdl.Phase2
In phase 2 we go through the entire codebase again and get the dependent classes for each class and store this information in a SimplePackage object.
Nested Class Summary | |
(package private) class |
pdl.Phase1
In phase 1 we simply go through the entire codebase, reading all of the .class files to determine whether to add each class into the class list or the interface list. |
(package private) class |
pdl.Phase2
In phase 2 we go through the entire codebase again and get the dependent classes for each class and store this information in a SimplePackage object. |
Field Summary | |
(package private) static Vector |
d_baseTypesList
This list contains the name of all the base data types and is used to skip these types when they are encountered in the Phase2.ProcessFile() method. |
(package private) static Hashtable |
d_classDeps
This contains is used to track dependencies between classes. |
(package private) static Vector |
d_classList
|
(package private) String |
d_currentPackageName
This field is used by multiple methods in this class. |
(package private) static boolean |
d_includeWindchillClassesOnly
|
(package private) static Hashtable |
d_interfaceDeps
This contains is used to track dependencies between interfaces The KEY is an interfaceSpec, the VALUE is an InterfaceDeps object. |
(package private) static Vector |
d_interfaceList
|
(package private) static String |
d_outputDirectory
|
(package private) static Hashtable |
d_packages
|
(package private) static String |
d_startingDirectory
|
Constructor Summary | |
(package private) |
pdl.Phase2()
|
Method Summary | |
(package private) void |
addDependency(String currentClassSpec,
SimplePackage packageInfo,
String dependentClassSpec)
This method adds the specified dependentClassSpec to the specified SimplePackage object. |
(package private) void |
addToMasterList(ClassFile cf,
String classSpec)
This convenience method checks to see if the current class is an INTERFACE or a CLASS and then adds it to the appropriate Vector. |
(package private) void |
dependencyCheck(ClassFile cf,
SimplePackage theSimplePackage)
This method scans the bytecode in methods for more remote dependencies |
(package private) void |
deserialize()
|
(package private) void |
directoryCheck(String dirName)
|
boolean |
directoryNameOk(String directoryName)
Make sure the user specifies a directory in the Windchill codebase at the wt level or below |
(package private) void |
displayClassDeps(PrintWriter pw,
String classSpec)
This method locates the specified classSpec in d_classDeps and recurses 'upward' through the inheritance hierarchy all the way to java.lang.Object, displaying each class along the way. |
(package private) void |
displayInterfaceDeps(PrintWriter pw,
String interfaceSpec)
This method locates the specified interfaceSpec in d_interfaceDeps and recurses 'upward' through the inheritance hierarchy displaying each interface along the way. |
boolean |
fileTypeOk(String fileName)
This method acts like a filter so that only .class files are processed. |
(package private) void |
fillBaseTypesList()
|
static void |
main(String[] args)
|
(package private) void |
noneMsg(PrintWriter pw,
String title,
String noneMsg)
This is a simple convenience method used by summary(). |
(package private) void |
processCode(ClassFile cf,
CodeAttrInfo cai,
SimplePackage theSimplePackage)
This method walks through the ByteCode watching for more subtle dependencies that only show up in the Byte Code. |
(package private) void |
processCommandLineArgs(String[] args)
|
void |
processDirectory(String directoryName)
output the name of the package |
void |
processFile(String fileName)
This method is defined here to meet the requirements of the ProcessFileInterface interface BUT it doesn't do anything. |
(package private) void |
run(String[] args)
|
(package private) void |
serialize()
|
protected boolean |
skipThisClass(String dependentClassSpec)
This method is used to determine whether or not a particular class should be included in the dependency information containers. |
(package private) void |
summary()
This method outputs a summary of dependency information for all packages in the codebase. |
(package private) static void |
usage()
|
(package private) void |
writeHtml()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static boolean d_includeWindchillClassesOnly
static Vector d_interfaceList
static Vector d_classList
static Hashtable d_interfaceDeps
static Hashtable d_classDeps
static Hashtable d_packages
static String d_startingDirectory
static String d_outputDirectory
static Vector d_baseTypesList
String d_currentPackageName
Constructor Detail |
pdl.Phase2()
Method Detail |
void addDependency(String currentClassSpec, SimplePackage packageInfo, String dependentClassSpec)
void processCode(ClassFile cf, CodeAttrInfo cai, SimplePackage theSimplePackage)
void dependencyCheck(ClassFile cf, SimplePackage theSimplePackage)
public void processFile(String fileName)
pdl
processFile
in interface ProcessFileInterface
processFile
in class pdl
void serialize()
void deserialize()
void addToMasterList(ClassFile cf, String classSpec)
public void processDirectory(String directoryName)
processDirectory
in interface ProcessFileInterface
public boolean directoryNameOk(String directoryName)
directoryNameOk
in interface ProcessFileInterface
public boolean fileTypeOk(String fileName)
fileTypeOk
in interface ProcessFileInterface
protected boolean skipThisClass(String dependentClassSpec)
void noneMsg(PrintWriter pw, String title, String noneMsg)
void displayInterfaceDeps(PrintWriter pw, String interfaceSpec)
void displayClassDeps(PrintWriter pw, String classSpec)
void summary()
void writeHtml()
void directoryCheck(String dirName)
void processCommandLineArgs(String[] args)
void fillBaseTypesList()
void run(String[] args)
static void usage()
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |