Package ghidra.trace.database.program
Class DBTraceProgramViewPropertyMapManager
java.lang.Object
ghidra.trace.database.program.DBTraceProgramViewPropertyMapManager
- All Implemented Interfaces:
PropertyMapManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected classprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIntPropertyMap(String propertyName) Creates a new IntPropertyMap with the given name.createLongPropertyMap(String propertyName) Creates a new LongPropertyMap with the given name.<T extends Saveable>
ObjectPropertyMap<T> createObjectPropertyMap(String propertyName, Class<T> objectClass) Creates a new ObjectPropertyMap with the given name.createStringPropertyMap(String propertyName) Creates a new StringPropertyMap with the given name.createVoidPropertyMap(String propertyName) Creates a new VoidPropertyMap with the given name.getIntPropertyMap(String propertyName) Returns the IntPropertyMap associated with the given name.getLongPropertyMap(String propertyName) Returns the LongPropertyMap associated with the given name.ObjectPropertyMap<? extends Saveable> getObjectPropertyMap(String propertyName) Returns the ObjectPropertyMap associated with the given name.PropertyMap<?> getPropertyMap(String propertyName) Returns the PropertyMap with the given name or null if no PropertyMap exists with that name.getStringPropertyMap(String propertyName) Returns the StringPropertyMap associated with the given name.getVoidPropertyMap(String propertyName) Returns the VoidPropertyMap associated with the given name.Returns an iterator over the names of all existing PropertyMaps sorted by name.voidRemoves any property at the given address from all defined PropertyMaps.voidremoveAll(Address startAddr, Address endAddr, TaskMonitor monitor) Removes all properties in the given range from all user defined PropertyMaps.protected voidremoveAll(Lifespan span, AddressRange range) booleanremovePropertyMap(String propertyName) Removes the PropertyMap with the given name.
-
Field Details
-
program
-
-
Constructor Details
-
DBTraceProgramViewPropertyMapManager
-
-
Method Details
-
createIntPropertyMap
Description copied from interface:PropertyMapManagerCreates a new IntPropertyMap with the given name.- Specified by:
createIntPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name for the new property.- Returns:
- newly created integer object map
- Throws:
DuplicateNameException- thrown if a PropertyMap already exists with that name.
-
createLongPropertyMap
Description copied from interface:PropertyMapManagerCreates a new LongPropertyMap with the given name.- Specified by:
createLongPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name for the new property.- Returns:
- newly created long object map
- Throws:
DuplicateNameException- thrown if a PropertyMap already exists with that name.
-
createStringPropertyMap
Description copied from interface:PropertyMapManagerCreates a new StringPropertyMap with the given name.- Specified by:
createStringPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name for the new property.- Returns:
- newly created string object map
- Throws:
DuplicateNameException- thrown if a PropertyMap already exists with that name.
-
createObjectPropertyMap
public <T extends Saveable> ObjectPropertyMap<T> createObjectPropertyMap(String propertyName, Class<T> objectClass) throws DuplicateNameException Description copied from interface:PropertyMapManagerCreates a new ObjectPropertyMap with the given name.- Specified by:
createObjectPropertyMapin interfacePropertyMapManager- Type Parameters:
T-Saveableproperty value type- Parameters:
propertyName- the name for the new property.objectClass-Saveableimplementation class- Returns:
- newly created
Saveableobject map - Throws:
DuplicateNameException- thrown if a PropertyMap already exists with that name.
-
createVoidPropertyMap
Description copied from interface:PropertyMapManagerCreates a new VoidPropertyMap with the given name.- Specified by:
createVoidPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name for the new property.- Returns:
- newly created void map
- Throws:
DuplicateNameException- thrown if a PropertyMap already exists with that name.
-
getPropertyMap
Description copied from interface:PropertyMapManagerReturns the PropertyMap with the given name or null if no PropertyMap exists with that name.- Specified by:
getPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
getIntPropertyMap
Description copied from interface:PropertyMapManagerReturns the IntPropertyMap associated with the given name.- Specified by:
getIntPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
getLongPropertyMap
Description copied from interface:PropertyMapManagerReturns the LongPropertyMap associated with the given name.- Specified by:
getLongPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
getStringPropertyMap
Description copied from interface:PropertyMapManagerReturns the StringPropertyMap associated with the given name.- Specified by:
getStringPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
getObjectPropertyMap
Description copied from interface:PropertyMapManagerReturns the ObjectPropertyMap associated with the given name.- Specified by:
getObjectPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
getVoidPropertyMap
Description copied from interface:PropertyMapManagerReturns the VoidPropertyMap associated with the given name.- Specified by:
getVoidPropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to retrieve.- Returns:
- existing map or null if not found
-
removePropertyMap
Description copied from interface:PropertyMapManagerRemoves the PropertyMap with the given name.- Specified by:
removePropertyMapin interfacePropertyMapManager- Parameters:
propertyName- the name of the property to remove.- Returns:
- true if a PropertyMap with that name was found (and removed)
-
propertyManagers
Description copied from interface:PropertyMapManagerReturns an iterator over the names of all existing PropertyMaps sorted by name.- Specified by:
propertyManagersin interfacePropertyMapManager
-
removeAll
-
removeAll
Description copied from interface:PropertyMapManagerRemoves any property at the given address from all defined PropertyMaps.- Specified by:
removeAllin interfacePropertyMapManager- Parameters:
addr- the address at which to remove all property values.
-
removeAll
public void removeAll(Address startAddr, Address endAddr, TaskMonitor monitor) throws CancelledException Description copied from interface:PropertyMapManagerRemoves all properties in the given range from all user defined PropertyMaps. The specified start and end addresses must form a valid range within a singleAddressSpace.- Specified by:
removeAllin interfacePropertyMapManager- Parameters:
startAddr- the first address in the range of addresses where propertie values are to be removed.endAddr- the last address in the range of addresses where propertie values are to be removed.monitor- monitors progress- Throws:
CancelledException- if the user cancelled the operation.
-