Package ghidra.program.model.util
Class DefaultIntPropertyMap
- java.lang.Object
-
- ghidra.program.model.util.DefaultPropertyMap
-
- ghidra.program.model.util.DefaultIntPropertyMap
-
- All Implemented Interfaces:
IntPropertyMap,PropertyMap
public class DefaultIntPropertyMap extends DefaultPropertyMap implements IntPropertyMap
Property manager that deals with properties that are of int type.
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.util.DefaultPropertyMap
addrMap, description, propertyMgr
-
-
Constructor Summary
Constructors Constructor Description DefaultIntPropertyMap(java.lang.String name)Construct a new IntPropertyMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Address addr, int value)Add an int value at the specified address.intgetInt(Address addr)Get the integer value at the given address.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.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, int value)
Add an int value at the specified address.- Specified by:
addin interfaceIntPropertyMap- Parameters:
addr- address for the propertyvalue- value of the property
-
getInt
public int getInt(Address addr) throws NoValueException
Get the integer value at the given address.- Specified by:
getIntin interfaceIntPropertyMap- Parameters:
addr- the address from where to get the int value- Throws:
NoValueException- if there is no property value at addr.
-
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)
-
-