Class SourceMapEntryDB
java.lang.Object
ghidra.program.database.sourcemap.SourceMapEntryDB
- All Implemented Interfaces:
SourceMapEntry
,Comparable<SourceMapEntry>
Database implementation of
SourceMapEntry
interface.
Note: clients should drop and reacquire all SourceMapEntryDB objects upon undo/redo, ProgramEvent.SOURCE_MAP_CHANGED, and ProgramEvent.SOURCE_FILE_REMOVED.
-
Method Summary
-
Method Details
-
getLineNumber
public int getLineNumber()Description copied from interface:SourceMapEntry
Returns the line number.- Specified by:
getLineNumber
in interfaceSourceMapEntry
- Returns:
- line number
-
getSourceFile
Description copied from interface:SourceMapEntry
Returns the source file- Specified by:
getSourceFile
in interfaceSourceMapEntry
- Returns:
- source file
-
getBaseAddress
Description copied from interface:SourceMapEntry
Returns the base address of the entry- Specified by:
getBaseAddress
in interfaceSourceMapEntry
- Returns:
- base address
-
getRange
Description copied from interface:SourceMapEntry
Returns the address range, or null for length 0 entries- Specified by:
getRange
in interfaceSourceMapEntry
- Returns:
- address range or null
-
getLength
public long getLength()Description copied from interface:SourceMapEntry
Returns the length of the range (number of addresses)- Specified by:
getLength
in interfaceSourceMapEntry
- Returns:
- length
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SourceMapEntry>
-
equals
-
hashCode
public int hashCode()
-