Package ghidra.program.database.util
Class AddressSetPropertyMapDB
java.lang.Object
ghidra.program.database.util.AddressSetPropertyMapDB
- All Implemented Interfaces:
AddressSetPropertyMap
AddressSetPropertyMap that uses a RangeMapDB to maintain a set of addresses.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the address range to the property map.void
add
(AddressSetView addressSet) Add the address set to the property map.void
clear()
Clear the property map.boolean
Return whether the property map contains the given address.static AddressSetPropertyMapDB
createPropertyMap
(ProgramDB program, String mapName, ErrorHandler errHandler, AddressMap addrMap, Lock lock) void
delete()
Return an address iterator over the property map.Return an address range iterator over the property map.Return the address set for the property map.static AddressSetPropertyMapDB
getPropertyMap
(ProgramDB program, String mapName, ErrorHandler errHandler, AddressMap addrMap, Lock lock) void
moveAddressRange
(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) Move the address range to a new starting address.void
Remove the address range from the property map.void
remove
(AddressSetView addressSet) Remove the address set from the property map.void
set
(AddressSetView addressSet) Clear the property map and set it with the given address set.
-
Method Details
-
getPropertyMap
public static AddressSetPropertyMapDB getPropertyMap(ProgramDB program, String mapName, ErrorHandler errHandler, AddressMap addrMap, Lock lock) -
createPropertyMap
public static AddressSetPropertyMapDB createPropertyMap(ProgramDB program, String mapName, ErrorHandler errHandler, AddressMap addrMap, Lock lock) throws DuplicateNameException - Throws:
DuplicateNameException
-
add
Description copied from interface:AddressSetPropertyMap
Add the address range to the property map.- Specified by:
add
in interfaceAddressSetPropertyMap
- Parameters:
startAddr
- start of the rangeendAddr
- end of the range
-
add
Description copied from interface:AddressSetPropertyMap
Add the address set to the property map.- Specified by:
add
in interfaceAddressSetPropertyMap
- Parameters:
addressSet
- address set to add
-
set
Description copied from interface:AddressSetPropertyMap
Clear the property map and set it with the given address set.- Specified by:
set
in interfaceAddressSetPropertyMap
- Parameters:
addressSet
- address set to use
-
remove
Description copied from interface:AddressSetPropertyMap
Remove the address range from the property map.- Specified by:
remove
in interfaceAddressSetPropertyMap
- Parameters:
startAddr
- start of the rangeendAddr
- end of the range
-
remove
Description copied from interface:AddressSetPropertyMap
Remove the address set from the property map.- Specified by:
remove
in interfaceAddressSetPropertyMap
- Parameters:
addressSet
- address set to remove
-
getAddressSet
Description copied from interface:AddressSetPropertyMap
Return the address set for the property map.- Specified by:
getAddressSet
in interfaceAddressSetPropertyMap
-
getAddresses
Description copied from interface:AddressSetPropertyMap
Return an address iterator over the property map.- Specified by:
getAddresses
in interfaceAddressSetPropertyMap
-
getAddressRanges
Description copied from interface:AddressSetPropertyMap
Return an address range iterator over the property map.- Specified by:
getAddressRanges
in interfaceAddressSetPropertyMap
-
clear
public void clear()Description copied from interface:AddressSetPropertyMap
Clear the property map.- Specified by:
clear
in interfaceAddressSetPropertyMap
-
contains
Description copied from interface:AddressSetPropertyMap
Return whether the property map contains the given address.- Specified by:
contains
in interfaceAddressSetPropertyMap
- Parameters:
addr
- address to check
-
delete
public void delete() -
moveAddressRange
public void moveAddressRange(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) throws AddressOverflowException, CancelledException Move the address range to a new starting address.- Parameters:
fromAddr
- move from addresstoAddr
- move to addresslength
- number of address to movemonitor
-- Throws:
CancelledException
AddressOverflowException
-