Class DWARFSourceInfo
- java.lang.Object
 - 
- ghidra.app.util.bin.format.dwarf4.next.DWARFSourceInfo
 
 
- 
public class DWARFSourceInfo extends java.lang.ObjectSmall class to hold the filename and line number info values from DWARFDIEs. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DWARFSourceInfocreate(DIEAggregate diea)Creates a newDWARFSourceInfoinstance from the suppliedDIEAggregateif the info is present, otherwise returns null;booleanequals(java.lang.Object obj)java.lang.StringgetDescriptionStr()Returns the source location info as a string formatted as "filename:linenum"static java.lang.StringgetDescriptionStr(DIEAggregate diea)Returns the source file and line number info attached to the specifiedDIEAggregateformatted asgetDescriptionStr(), or null if not present.java.lang.StringgetDescriptionStr2()Returns the source location info as a string formatted as "File: filename Line: linenum"java.lang.StringgetFilename()Returns the filenamestatic DWARFSourceInfogetSourceInfoWithFallbackToParent(DIEAggregate diea)Creates a newDWARFSourceInfoinstance from the suppliedDIEAggregate, falling back to the parent containing DIE record if the first record did not have any source info.inthashCode()java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
create
public static DWARFSourceInfo create(DIEAggregate diea)
Creates a newDWARFSourceInfoinstance from the suppliedDIEAggregateif the info is present, otherwise returns null;- Parameters:
 diea-DIEAggregateto query for source info- Returns:
 - new 
DWARFSourceInfowith filename:linenum info, or null if no info present in DIEA. 
 
- 
getSourceInfoWithFallbackToParent
public static DWARFSourceInfo getSourceInfoWithFallbackToParent(DIEAggregate diea)
Creates a newDWARFSourceInfoinstance from the suppliedDIEAggregate, falling back to the parent containing DIE record if the first record did not have any source info.- Parameters:
 diea-DIEAggregateto query for source info.- Returns:
 - new 
DWARFSourceInfowith filename:linenum info, or null if no info present in the specified DIEA and its parent. 
 
- 
getDescriptionStr
public static java.lang.String getDescriptionStr(DIEAggregate diea)
Returns the source file and line number info attached to the specifiedDIEAggregateformatted asgetDescriptionStr(), or null if not present.- Parameters:
 diea-DIEAggregateto query- Returns:
 - string, see 
getDescriptionStr() 
 
- 
getFilename
public java.lang.String getFilename()
Returns the filename- Returns:
 - string filename.
 
 
- 
getDescriptionStr
public java.lang.String getDescriptionStr()
Returns the source location info as a string formatted as "filename:linenum"- Returns:
 - "filename:linenum"
 
 
- 
getDescriptionStr2
public java.lang.String getDescriptionStr2()
Returns the source location info as a string formatted as "File: filename Line: linenum"- Returns:
 - "File: filename Line: linenum"
 
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -