Package ghidra.program.model.util
Class DefaultStringPropertyMap
- java.lang.Object
-
- ghidra.program.model.util.DefaultPropertyMap
-
- ghidra.program.model.util.DefaultStringPropertyMap
-
- All Implemented Interfaces:
PropertyMap
,StringPropertyMap
public class DefaultStringPropertyMap extends DefaultPropertyMap implements StringPropertyMap
Property manager that deals with properties that are of String type.
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.util.DefaultPropertyMap
addrMap, description, propertyMgr
-
-
Constructor Summary
Constructors Constructor Description DefaultStringPropertyMap(java.lang.String name)
Construct a new StringPropertyMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Address addr, java.lang.String value)
Add a String value at the specified address.java.lang.Object
getObject(Address addr)
Returns the property value stored at the specified address or null if no property found.java.lang.String
getString(Address addr)
Get the String value at the given address.-
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, restoreAll, restoreProperties, saveAll, 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, java.lang.String value)
Add a String value at the specified address.- Specified by:
add
in interfaceStringPropertyMap
- Parameters:
addr
- address for the propertyvalue
- value of the property- Throws:
TypeMismatchException
- thrown if the property does not have String values.
-
getString
public java.lang.String getString(Address addr)
Get the String value at the given address.- Specified by:
getString
in interfaceStringPropertyMap
- Parameters:
addr
- the address from where to get the String value- Returns:
- String or null if property not found at addr.
-
getObject
public java.lang.Object getObject(Address addr)
Description copied from interface:PropertyMap
Returns the property value stored at the specified address or null if no property found.- Specified by:
getObject
in interfacePropertyMap
- Parameters:
addr
- property address- Returns:
- property value
- See Also:
PropertyMap.getObject(ghidra.program.model.address.Address)
-
-