|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.xref.IndexJavaSource
The following shows the 9 different Attributes and where they are used in Java .class files. ClassFile structure: InnerClasses, SourceFile, Deprecated FieldInfo structure: Synthetic, ConstantValue, Deprecated MethodInfo structure: Synthetic, Exceptions, Code, Deprecated Code attribute: LineNumberTable, LocalVariableTable
Field Summary | |
(package private) String |
d_CrLf
|
(package private) ClassInterface |
d_currentClass
|
(package private) String |
d_currentPackageName
|
(package private) Hashtable |
d_getFields
|
(package private) Hashtable |
d_instantiations
|
(package private) Hashtable |
d_localVariables
|
(package private) Hashtable |
d_methodCalls
|
(package private) String |
d_outputDirectory
|
(package private) Hashtable |
d_putFields
|
(package private) PrintWriter |
d_pw
|
(package private) String |
d_startingDirectory
|
Constructor Summary | |
IndexJavaSource()
|
Method Summary | |
(package private) void |
closeOutputFile()
|
(package private) void |
directoryCheck(String dirName)
|
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)
This method outputs the fields for the current class |
(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) LineNumberAttrInfo |
getLineNumberAttrInfo(AttrInfoList ail)
|
(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 |
Log(String msg)
|
static void |
main(String[] args)
|
(package private) void |
openOutputFile(String outputFileName)
This method is used to open the specified fileName for output |
(package private) void |
processCode(ClassFile cf,
CodeAttrInfo cai,
Method method,
MethodInfo mi)
|
(package private) void |
processCommandLineArgs(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 |
(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,
Method currentMethod,
MethodInfo mi)
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) static void |
usage()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String d_currentPackageName
ClassInterface d_currentClass
String d_startingDirectory
String d_outputDirectory
PrintWriter d_pw
String d_CrLf
Hashtable d_localVariables
Hashtable d_methodCalls
Hashtable d_getFields
Hashtable d_putFields
Hashtable d_instantiations
Constructor Detail |
public IndexJavaSource()
Method Detail |
public boolean directoryNameOk(String directoryName)
ProcessFileInterface
directoryNameOk
in interface ProcessFileInterface
public void processDirectory(String directoryName)
ProcessFileInterface
processDirectory
in interface ProcessFileInterface
String getMethodSignature(MethodInfo mi, boolean includeClassName)
void Log(String msg)
int getSourceLineNumber(LineNumberProgramCounter[] lnpc, int pc)
LineNumberAttrInfo getLineNumberAttrInfo(AttrInfoList ail)
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, Method currentMethod, MethodInfo mi)
void processCode(ClassFile cf, CodeAttrInfo cai, Method method, MethodInfo mi)
void displayMethods(ClassFile cf)
void displaySuperClass(ClassFile cf)
void displayInterfaces(ClassFile cf)
public boolean fileTypeOk(String fileName)
ProcessFileInterface
fileTypeOk
in interface ProcessFileInterface
void displayFields(ClassFile cf)
void openOutputFile(String outputFileName)
void closeOutputFile()
public void processFile(String className)
ProcessFileInterface
processFile
in interface ProcessFileInterface
void directoryCheck(String dirName)
void processCommandLineArgs(String[] args)
static void usage()
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 |