|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.ImageCompare
public class ImageCompare
Support for comparing DTFJ images to report the differences. At present this is really aimed at verifying that two images contain the same contents but may be derived to allow more detailed comparisons.
Constructor Summary | |
---|---|
ImageCompare()
Build a comparator to compare a pair of images. |
|
ImageCompare(IAnalysisReport report)
Build a comparator to compare a pair of images. |
|
ImageCompare(java.io.PrintStream out)
Build a comparator to compare a pair of images. |
Method Summary | |
---|---|
int |
compare(com.ibm.dtfj.image.ImageAddressSpace v1,
com.ibm.dtfj.image.ImageAddressSpace v2,
boolean deep)
Compare two ImageAddresSpaces and report the differences |
int |
compare(com.ibm.dtfj.image.Image v1,
com.ibm.dtfj.image.Image v2,
boolean deep)
|
int |
compare(com.ibm.dtfj.image.ImageModule v1,
com.ibm.dtfj.image.ImageModule v2,
boolean deep)
Compare two ImageModules and report the differences |
int |
compare(com.ibm.dtfj.image.ImagePointer v1,
com.ibm.dtfj.image.ImagePointer v2,
java.lang.String msg)
Compare two ImagePointers and report the differences |
int |
compare(com.ibm.dtfj.image.ImageProcess v1,
com.ibm.dtfj.image.ImageProcess v2,
boolean deep)
Compare two ImageProcesses and report the differences |
int |
compare(com.ibm.dtfj.image.ImageRegister v1,
com.ibm.dtfj.image.ImageRegister v2,
boolean deep)
Compare two ImageRegisters and report the differences |
int |
compare(com.ibm.dtfj.image.ImageSection v1,
com.ibm.dtfj.image.ImageSection v2,
boolean deep)
Compare two ImageSections and report the differences |
int |
compare(com.ibm.dtfj.image.ImageStackFrame v1,
com.ibm.dtfj.image.ImageStackFrame v2,
boolean deep)
Compare two ImageStackFrames and report the differences |
int |
compare(com.ibm.dtfj.image.ImageSymbol v1,
com.ibm.dtfj.image.ImageSymbol v2,
boolean deep)
Compare two ImageSymbols and report the differences |
int |
compare(com.ibm.dtfj.image.ImageThread v1,
com.ibm.dtfj.image.ImageThread v2,
boolean deep)
Compare two ImageThreads and report the differences |
int |
compare(java.util.Iterator v1,
java.util.Iterator v2,
boolean deep,
java.lang.String msg,
boolean sort)
Compare the objects in two iterators and report the differences |
int |
compare(com.ibm.dtfj.java.JavaClass v1,
com.ibm.dtfj.java.JavaClass v2,
boolean deep)
Compare two JavaClasses and report the differences |
int |
compare(com.ibm.dtfj.java.JavaClassLoader v1,
com.ibm.dtfj.java.JavaClassLoader v2,
boolean deep)
Compare two JavaClassLoaders and report the differences |
int |
compare(com.ibm.dtfj.java.JavaField v1,
com.ibm.dtfj.java.JavaField v2,
boolean deep)
Compare two JavaFields and report the differences |
int |
compare(com.ibm.dtfj.java.JavaHeap v1,
com.ibm.dtfj.java.JavaHeap v2,
boolean deep)
Compare two JavaHeaps and report the differences |
int |
compare(com.ibm.dtfj.java.JavaLocation v1,
com.ibm.dtfj.java.JavaLocation v2,
boolean deep)
Compare two JavaLocations and report the differences |
int |
compare(com.ibm.dtfj.java.JavaMethod v1,
com.ibm.dtfj.java.JavaMethod v2,
boolean deep)
Compare two JavaMethods and report the differences |
int |
compare(com.ibm.dtfj.java.JavaMonitor v1,
com.ibm.dtfj.java.JavaMonitor v2,
boolean deep)
Compare two JavaMonitors and report the differences |
int |
compare(com.ibm.dtfj.java.JavaObject v1,
com.ibm.dtfj.java.JavaObject v2,
boolean deep)
Compare two JavaObjects and report the differences |
int |
compare(com.ibm.dtfj.java.JavaRuntime v1,
com.ibm.dtfj.java.JavaRuntime v2,
boolean deep)
Compare two JavaRuntimes and report the differences |
int |
compare(com.ibm.dtfj.java.JavaStackFrame v1,
com.ibm.dtfj.java.JavaStackFrame v2,
boolean deep)
Compare two JavaStackFrames and report the differences |
int |
compare(com.ibm.dtfj.java.JavaThread v1,
com.ibm.dtfj.java.JavaThread v2,
boolean deep)
Compare two JavaThreads and report the differences |
int |
compare(com.ibm.dtfj.java.JavaVMOption v1,
com.ibm.dtfj.java.JavaVMOption v2,
boolean deep)
Compare two JavaVMOptions and report the differences |
int |
compare(com.ibm.dtfj.runtime.ManagedRuntime v1,
com.ibm.dtfj.runtime.ManagedRuntime v2,
boolean deep)
Compare two ManagedRuntimes and report the differences |
java.lang.String |
getID(java.lang.Object obj1)
Build a short identifier for an object. |
protected void |
outputDifference(java.lang.String msg)
|
protected void |
outputDifference(java.lang.String msg,
java.lang.String msg1)
|
void |
setErrorLimit(int limit)
Define the maximum number of errors that will be reported. |
protected void |
show(java.lang.String msg)
|
protected void |
show(java.lang.String field,
int value)
|
void |
summarise()
Summarise the differences and matches either to the output stream or the report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageCompare()
public ImageCompare(IAnalysisReport report)
report
- the report to receive the difference informationpublic ImageCompare(java.io.PrintStream out)
out
- the stream to receive the difference informationMethod Detail |
---|
public void setErrorLimit(int limit)
limit
- the maximum number of errorsprotected void outputDifference(java.lang.String msg, java.lang.String msg1)
protected void outputDifference(java.lang.String msg)
protected void show(java.lang.String msg)
protected void show(java.lang.String field, int value)
public void summarise()
public int compare(com.ibm.dtfj.image.Image v1, com.ibm.dtfj.image.Image v2, boolean deep)
v1
- v2
- deep
-
public int compare(com.ibm.dtfj.image.ImageAddressSpace v1, com.ibm.dtfj.image.ImageAddressSpace v2, boolean deep)
v1
- first address spacev2
- second address spacedeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImagePointer v1, com.ibm.dtfj.image.ImagePointer v2, java.lang.String msg)
v1
- first pointerv2
- second pointermsg
- message to print on error
public int compare(com.ibm.dtfj.image.ImageProcess v1, com.ibm.dtfj.image.ImageProcess v2, boolean deep)
v1
- first processv2
- second processdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageSection v1, com.ibm.dtfj.image.ImageSection v2, boolean deep)
v1
- first sectionv2
- second sectiondeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageModule v1, com.ibm.dtfj.image.ImageModule v2, boolean deep)
v1
- first modulev2
- second moduledeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageThread v1, com.ibm.dtfj.image.ImageThread v2, boolean deep)
v1
- first threadv2
- second threaddeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageSymbol v1, com.ibm.dtfj.image.ImageSymbol v2, boolean deep)
v1
- first symbolv2
- second symboldeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageStackFrame v1, com.ibm.dtfj.image.ImageStackFrame v2, boolean deep)
v1
- first framev2
- second framedeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.image.ImageRegister v1, com.ibm.dtfj.image.ImageRegister v2, boolean deep)
v1
- first registerv2
- second registerdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.runtime.ManagedRuntime v1, com.ibm.dtfj.runtime.ManagedRuntime v2, boolean deep)
v1
- first runtimev2
- second runtimedeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaRuntime v1, com.ibm.dtfj.java.JavaRuntime v2, boolean deep)
v1
- first runtimev2
- second runtimedeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaStackFrame v1, com.ibm.dtfj.java.JavaStackFrame v2, boolean deep)
v1
- first framev2
- second framedeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaLocation v1, com.ibm.dtfj.java.JavaLocation v2, boolean deep)
v1
- first locationv2
- second locationdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaClass v1, com.ibm.dtfj.java.JavaClass v2, boolean deep)
v1
- first classv2
- second classdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaClassLoader v1, com.ibm.dtfj.java.JavaClassLoader v2, boolean deep)
v1
- first loaderv2
- second loaderdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaThread v1, com.ibm.dtfj.java.JavaThread v2, boolean deep)
v1
- first threadv2
- second threaddeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaObject v1, com.ibm.dtfj.java.JavaObject v2, boolean deep)
v1
- first objectv2
- second objectdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaMonitor v1, com.ibm.dtfj.java.JavaMonitor v2, boolean deep)
v1
- first monitorv2
- second monitordeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaHeap v1, com.ibm.dtfj.java.JavaHeap v2, boolean deep)
v1
- first heapv2
- second heapdeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaMethod v1, com.ibm.dtfj.java.JavaMethod v2, boolean deep)
v1
- first methodv2
- second methoddeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaField v1, com.ibm.dtfj.java.JavaField v2, boolean deep)
v1
- first fieldv2
- second fielddeep
- should we do a deep compare against contained objects ?
public int compare(com.ibm.dtfj.java.JavaVMOption v1, com.ibm.dtfj.java.JavaVMOption v2, boolean deep)
v1
- first optionv2
- second optiondeep
- should we do a deep compare against contained objects ?
public java.lang.String getID(java.lang.Object obj1)
obj1
- the object to get an ID from
public int compare(java.util.Iterator v1, java.util.Iterator v2, boolean deep, java.lang.String msg, boolean sort)
v1
- the first set of objectsv2
- the second set of objectsdeep
- should we do a deep compare against contained objects ?msg
- message to print with the differencesort
- if true then sort the iterators
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |