Package ghidra.program.model.util
Class DefaultObjectPropertyMap
- java.lang.Object
-
- ghidra.program.model.util.DefaultPropertyMap
-
- ghidra.program.model.util.DefaultObjectPropertyMap
-
- All Implemented Interfaces:
ObjectPropertyMap
,PropertyMap
public class DefaultObjectPropertyMap extends DefaultPropertyMap implements ObjectPropertyMap
Property manager that deals with properties that are of Object type. The Object type must implement the Saveable interface.
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.util.DefaultPropertyMap
addrMap, description, propertyMgr
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectPropertyMap(java.lang.String name, java.lang.Class<?> objectClass)
Construct a new ObjectPropertyMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Address addr, Saveable value)
Add an object value at the specified address.java.lang.Object
getObject(Address addr)
Get the object value at the given address.java.lang.Class<?>
getObjectClass()
Returns Saveable object class.-
Methods inherited from class ghidra.program.model.util.DefaultPropertyMap
applyValue, getDescription, getFirstPropertyAddress, getLastPropertyAddress, getName, getNextPropertyAddress, getPreviousPropertyAddress, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, hasProperty, intersects, intersects, moveRange, remove, removeRange, restoreProperties, saveProperties, setDescription
-
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
applyValue, getFirstPropertyAddress, getLastPropertyAddress, getName, getNextPropertyAddress, getPreviousPropertyAddress, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, hasProperty, intersects, intersects, moveRange, remove, removeRange
-
-
-
-
Method Detail
-
add
public void add(Address addr, Saveable value)
Add an object value at the specified address.- Specified by:
add
in interfaceObjectPropertyMap
- Parameters:
addr
- address for the propertyvalue
- value of the property- Throws:
TypeMismatchException
- thrown if the property does not have Saveable object values.
-
getObject
public java.lang.Object getObject(Address addr)
Get the object value at the given address.- Specified by:
getObject
in interfacePropertyMap
- Parameters:
addr
- the address from where to get the int value- Returns:
- Saveable object or null if property not found at addr.
-
getObjectClass
public java.lang.Class<?> getObjectClass()
Description copied from interface:ObjectPropertyMap
Returns Saveable object class.- Specified by:
getObjectClass
in interfaceObjectPropertyMap
- See Also:
ObjectPropertyMap.getObjectClass()
-
-