|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.xref.CallGraph
Field Summary | |
MethodHashOfVectors |
d_calledBy
KEY contains PackageClassMethodSpec object VALUE contains a vector of references to Metho's in d_methodList that call this method |
ClassHashTable |
d_classList
KEY contains PackageClassSpec object VALUE contains Class object |
(package private) Class |
d_currentClass
|
(package private) String |
d_currentPackageName
|
ClassHashOfVectors |
d_extendedBy
KEY contains PackageClassSpec object VALUE contains a vector of references to Class's in d_classList that extend this class |
InterfaceHashOfVectors |
d_implementedBy
KEY contains PackageInterfaceSpec VALUE contains vector of references to Interface's in d_interfaceList that implement this interface |
(package private) int |
d_indentLevel
|
(package private) String |
d_indentString
|
InterfaceHashTable |
d_interfaceList
KEY contains PackageInterfaceSpec object VALUE contains Interface object |
Hashtable |
d_methodCalls
KEY contains full signature of calling class VALUE contains vector of full signatures of called methods |
MethodHashTable |
d_methodList
KEY contains PackageClassMethodSpec object VALUE contains Method object |
(package private) int |
d_outputLevel
|
PackageHashtable |
d_packageList
KEY contains a package name string like wt.query VALUE contains a Package object |
Constructor Summary | |
CallGraph()
|
Method Summary | |
(package private) void |
decreaseIndent()
|
boolean |
directoryNameOk(String directoryName)
this method is provided so that the application can validate whether or not the specified directory is ok or not |
(package private) void |
displayFields(ClassFile cf)
|
(package private) void |
displayInterfaces(ClassFile cf)
|
(package private) void |
displayMethods(ClassFile cf)
|
(package private) void |
displaySuperClass(ClassFile cf)
|
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. |
(package private) LineNumberProgramCounter[] |
getLineNumbers(CodeAttrInfo cai)
|
(package private) String |
getMethodSignature(MethodInfo mi,
boolean includeClassName)
|
(package private) int |
getSourceLineNumber(LineNumberProgramCounter[] lnpc,
int pc)
|
(package private) void |
increaseIndent()
|
(package private) void |
Log(String msg)
|
static void |
main(String[] args)
|
(package private) void |
processCode(ClassFile cf,
CodeAttrInfo cai,
Method method)
|
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 |
(package private) void |
processException(ClassFile cf,
ExceptionAttrInfo eai)
|
void |
processFile(String className)
this method is provided for the developer in case they want to do something each time a file is encountered in a directory. |
(package private) void |
processGetField(ClassFile cf,
CodeAttrInfo cai)
|
(package private) void |
processInstantiations(ClassFile cf,
CodeAttrInfo cai)
|
(package private) void |
processLocalVariables(ClassFile cf,
CodeAttrInfo cai)
|
(package private) void |
processMethodCalls(ClassFile cf,
CodeAttrInfo cai,
boolean displayLocalCalls,
Method currentMethod)
if displayLocalCalls is true, then only output calls to methods in this class otherwise only output calls to methods not in this class. |
(package private) void |
processPutField(ClassFile cf,
CodeAttrInfo cai)
|
(package private) void |
run(String[] args)
this method is used to run this class in stand-alone-mode in order to process a single class file |
(package private) void |
setOutputLevel(int level)
|
(package private) void |
updateIndentString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String d_currentPackageName
Class d_currentClass
public PackageHashtable d_packageList
public Hashtable d_methodCalls
public InterfaceHashOfVectors d_implementedBy
public ClassHashOfVectors d_extendedBy
public MethodHashOfVectors d_calledBy
public ClassHashTable d_classList
public InterfaceHashTable d_interfaceList
public MethodHashTable d_methodList
int d_outputLevel
int d_indentLevel
String d_indentString
Constructor Detail |
public CallGraph()
Method Detail |
void updateIndentString()
void increaseIndent()
void decreaseIndent()
void setOutputLevel(int level)
void Log(String msg)
public void processDirectory(String directoryName)
ProcessFileInterface
processDirectory
in interface ProcessFileInterface
public boolean directoryNameOk(String directoryName)
ProcessFileInterface
directoryNameOk
in interface ProcessFileInterface
int getSourceLineNumber(LineNumberProgramCounter[] lnpc, int pc)
LineNumberProgramCounter[] getLineNumbers(CodeAttrInfo cai)
void processGetField(ClassFile cf, CodeAttrInfo cai)
void processPutField(ClassFile cf, CodeAttrInfo cai)
void processLocalVariables(ClassFile cf, CodeAttrInfo cai)
void processException(ClassFile cf, ExceptionAttrInfo eai)
void processInstantiations(ClassFile cf, CodeAttrInfo cai)
void processMethodCalls(ClassFile cf, CodeAttrInfo cai, boolean displayLocalCalls, Method currentMethod)
void processCode(ClassFile cf, CodeAttrInfo cai, Method method)
String getMethodSignature(MethodInfo mi, boolean includeClassName)
void displayMethods(ClassFile cf)
void displayFields(ClassFile cf)
void displaySuperClass(ClassFile cf)
void displayInterfaces(ClassFile cf)
public boolean fileTypeOk(String fileName)
ProcessFileInterface
fileTypeOk
in interface ProcessFileInterface
public void processFile(String className)
ProcessFileInterface
processFile
in interface ProcessFileInterface
void run(String[] args)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |