|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTranslatableAnalyzer
com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
com.ibm.dtfj.analyzer.helpers.OneImageSection
public class OneImageSection
Print basic information about one DTFJ ImageSection object.
Constructor Summary | |
---|---|
OneImageSection()
Null constructor for use as JavaBean |
Method Summary | |
---|---|
void |
addToContentSummary(java.lang.String item)
Add a new entry to the content summary for this section |
java.lang.String |
getAnnotation()
Obtain a descriptive text for this section, as set during a prior call to setAnnotation(String) . |
com.ibm.dtfj.image.ImagePointer |
getBase()
|
int |
getCachingPriority()
Return 10 to force caching of OneImageSection objects (to preserve the content summary) |
long |
getCRC32()
|
static OneImageSection |
getInstance(IAnalyzerContext context,
com.ibm.dtfj.image.ImageSection parent)
Find the OneImageSection bean instance associated with a given parent ImageSection (create it if necessary) |
long |
getSize()
|
java.lang.String |
getSizeAsString()
|
boolean |
isAddressInRange(long addr)
Check that a given numeric address is within the range of addresses for this ImageSection |
boolean |
isNull()
Check if this OneImageSection is a dummy representing a null address range. |
static boolean |
isNull(com.ibm.dtfj.image.ImageSection s)
Check if a given ImageSection is a dummy representing a null address range. |
boolean |
isOtherSectionInRange(com.ibm.dtfj.image.ImageSection otherSection)
Check if a given ImageSection is contained within the range of addresses that define this section. |
boolean |
isOtherSectionInRange(OneImageSection otherSection)
Check if a given OneImageSection is contained within the range of addresses that define this section. |
boolean |
isPointerInRange(com.ibm.dtfj.image.ImagePointer ptr)
Check that a given ImagePointer is within the range of addresses for this ImageSection |
boolean |
isSameRange(OneImageSection o)
Check if this OneImageSection represents the exact same address range as the current object |
void |
printContentSummary(IAnalysisReport out)
Print a summary of the contents of this section, as a segment of a report. |
void |
printRawContents(IAnalysisReport out,
long startOffset,
long size)
Print the contents of this section as raw hexadecimal values in a report. |
IAnalysisReport |
produceReport()
Generate a report which will be encapsulated in the IAnalysisReport object for later use by some formatter. |
void |
setAnnotation(java.lang.String annotation)
Set-up a descriptive text associated with this section. |
void |
setParent(java.lang.Object parent)
Set the parent ImageSection underlying this analyzer bean. |
protected void |
substituteParent(com.ibm.dtfj.image.ImageSection newParent)
Special method to allow a sub-class to substitute a new parent, to compensate for a DTFJ defect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneImageSection()
Method Detail |
---|
public int getCachingPriority()
getCachingPriority
in interface IAnalyzerBase
getCachingPriority
in class SimpleAnalyzerBean
SimpleAnalyzerBean.getCachingPriority()
public static OneImageSection getInstance(IAnalyzerContext context, com.ibm.dtfj.image.ImageSection parent)
context
- the AnalyzerContext in which to locate this bean instanceparent
- the parent ImageSection underlying this analyzer bean
public void setParent(java.lang.Object parent)
setParent
in interface IWrapper
setParent
in class SimpleAnalyzerBean
parent
- The parent object to set. Must be of type ImageSection.
compatible with the type of analyzer bean that receives itIWrapper.setParent(java.lang.Object)
protected void substituteParent(com.ibm.dtfj.image.ImageSection newParent)
newParent
- a new parent objectpublic boolean isPointerInRange(com.ibm.dtfj.image.ImagePointer ptr)
ptr
- the ImagePointer to check
public boolean isAddressInRange(long addr)
addr
- the address to check
public boolean isOtherSectionInRange(com.ibm.dtfj.image.ImageSection otherSection) throws com.ibm.dtfj.image.DTFJException
otherSection
- the target ImageSection to check
com.ibm.dtfj.image.DTFJException
public boolean isOtherSectionInRange(OneImageSection otherSection) throws com.ibm.dtfj.image.DTFJException
otherSection
- the target OneImageSection to check
com.ibm.dtfj.image.DTFJException
public void setAnnotation(java.lang.String annotation)
annotation
- the annotattion to associate with this sectionpublic java.lang.String getAnnotation()
setAnnotation(String)
.
public void addToContentSummary(java.lang.String item)
item
- a string describing the new entrypublic void printContentSummary(IAnalysisReport out)
addToContentSummary(String)
. It normally represents
information about objects or other references that are known to reside
within the memory range represented by this section.
out
- a AnalysisReport object to which to write the outputpublic java.lang.String getSizeAsString()
public IAnalysisReport produceReport()
IReport
produceReport
in interface IReport
produceReport
in class SimpleAnalyzerBean
IReport.produceReport()
public static boolean isNull(com.ibm.dtfj.image.ImageSection s)
s
- the ImageSection to check
public boolean isNull()
public boolean isSameRange(OneImageSection o)
o
- the other OneImageSection to compare to the current object
public long getCRC32() throws com.ibm.dtfj.image.DTFJException
com.ibm.dtfj.image.DTFJException
public com.ibm.dtfj.image.ImagePointer getBase()
public long getSize()
public void printRawContents(IAnalysisReport out, long startOffset, long size)
out
- the report to receive this outputstartOffset
- the start offset in the section from which to start printing (in bytes)size
- the number of bytes to print (will be rounded-up to 16 bytes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |