Package ghidra.pcode.exec.trace.data
Interface PcodeTracePropertyAccess<T>
- Type Parameters:
T- the type of the property's values
- All Known Implementing Classes:
DefaultPcodeTracePropertyAccess
public interface PcodeTracePropertyAccess<T>
A trace-property access shim for a specific property
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear(AddressRange range) Clear the property's value across a rangeGet the property's value at the given addressGet the property's entry at the given addressReturns the language.booleanhasSpace(AddressSpace space) Check if the trace has allocated property space for the given address spacevoidput(AddressRange range, T value) Set the property's value at the given rangevoidSet the property's value at the given address
-
Method Details
-
getLanguage
Language getLanguage()Returns the language.- Returns:
- the language
-
get
Get the property's value at the given addressThis may search for the same property from other related data sources, e.g., from mapped static images.
- Parameters:
address- the address- Returns:
- the value, or null if not set
-
getEntry
Get the property's entry at the given address- Parameters:
address- the address- Returns:
- the entry, or null if not set
-
put
Set the property's value at the given addressThe value is effective for future snapshots up to but excluding the next snapshot where another value is set at the same address.
- Parameters:
address- the addressvalue- the value to set
-
put
Set the property's value at the given rangeThe value is effective for future snapshots up to but excluding the next snapshot where another value is set at the same address.
- Parameters:
range- the rangevalue- the value to set
-
clear
Clear the property's value across a range- Parameters:
range- the range
-
hasSpace
Check if the trace has allocated property space for the given address spaceThis is available for optimizations when it may take effort to compute an address. If the space is not allocated, then no matter the offset, the property will not have a value. Clients can check this method to avoid the address computation, if they already know the address space.
- Parameters:
space- the address space- Returns:
- true if there is a property space
-