Class VoidPropertyMapDB
- java.lang.Object
-
- ghidra.program.database.properties.PropertyMapDB
-
- ghidra.program.database.properties.VoidPropertyMapDB
-
- All Implemented Interfaces:
PropertyMap,VoidPropertyMap
public class VoidPropertyMapDB extends PropertyMapDB implements VoidPropertyMap
Property manager that deals with properties that are of "void" type, which is a marker for whether a property exists. Records contain only a address key are stored within the underlying database table.
-
-
Field Summary
-
Fields inherited from class ghidra.program.database.properties.PropertyMapDB
addrMap, cache, changeMgr, dbHandle, DEFAULT_CACHE_SIZE, errHandler, lock, name, NO_SCHEMA_FIELD_CLASSES, NO_SCHEMA_FIELD_NAMES, PROPERTY_VALUE_COL, propertyTable, schema, SCHEMA_FIELD_NAMES
-
-
Constructor Summary
Constructors Constructor Description VoidPropertyMapDB(DBHandle dbHandle, int openMode, ErrorHandler errHandler, ChangeManager changeMgr, AddressMap addrMap, java.lang.String name, TaskMonitor monitor)Construct an void object property map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Address addr)Mark the specified address as having a propertyvoidapplyValue(PropertyVisitor visitor, Address addr)Applies a property value at the indicated address without knowing its type (String, int, long, etc.) by using the property visitor.java.lang.ObjectgetObject(Address addr)Returns the property value stored at the specified address or null if no property found.-
Methods inherited from class ghidra.program.database.properties.PropertyMapDB
createTable, delete, getAddressKeyIterator, getAddressKeyIterator, getAddressKeyIterator, getFirstPropertyAddress, getLastPropertyAddress, getName, getNextPropertyAddress, getPreviousPropertyAddress, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, getTableName, getTableName, hasProperty, intersects, intersects, invalidateCache, moveRange, remove, removeRange, setCacheSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ghidra.program.model.util.PropertyMap
getFirstPropertyAddress, getLastPropertyAddress, getName, getNextPropertyAddress, getPreviousPropertyAddress, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, hasProperty, intersects, intersects, moveRange, remove, removeRange
-
-
-
-
Constructor Detail
-
VoidPropertyMapDB
public VoidPropertyMapDB(DBHandle dbHandle, int openMode, ErrorHandler errHandler, ChangeManager changeMgr, AddressMap addrMap, java.lang.String name, TaskMonitor monitor) throws VersionException, CancelledException, java.io.IOException
Construct an void object property map.- Parameters:
dbHandle- database handle.openMode- the mode that the program was openned in.errHandler- database error handler.changeMgr- change manager for event notificationaddrMap- address map.name- property name.monitor- progress monitor that is only used when upgrading- Throws:
VersionException- if the database version is not the expected version.CancelledException- if the user cancels the upgrade operation.java.io.IOException- if a database io error occurs.
-
-
Method Detail
-
add
public void add(Address addr)
Description copied from interface:VoidPropertyMapMark the specified address as having a property- Specified by:
addin interfaceVoidPropertyMap- Parameters:
addr- address for the property- See Also:
VoidPropertyMap.add(ghidra.program.model.address.Address)
-
applyValue
public void applyValue(PropertyVisitor visitor, Address addr)
Description copied from interface:PropertyMapApplies a property value at the indicated address without knowing its type (String, int, long, etc.) by using the property visitor.- Specified by:
applyValuein interfacePropertyMap- Parameters:
visitor- the property visitor that lets you apply the property without knowing its specific type ahead of time.addr- the address where the property is to be applied.- See Also:
PropertyMap.applyValue(ghidra.util.prop.PropertyVisitor, ghidra.program.model.address.Address)
-
getObject
public java.lang.Object getObject(Address addr)
Description copied from interface:PropertyMapReturns the property value stored at the specified address or null if no property found.- Specified by:
getObjectin interfacePropertyMap- Parameters:
addr- property address- Returns:
- property value
- See Also:
PropertyMap.getObject(ghidra.program.model.address.Address)
-
-