Package ghidra.program.model.pcode
Class MappedEntry
- java.lang.Object
-
- ghidra.program.model.pcode.SymbolEntry
-
- ghidra.program.model.pcode.MappedEntry
-
- Direct Known Subclasses:
MappedDataEntry
public class MappedEntry extends SymbolEntry
A normal mapping of a HighSymbol to a particular Address, consuming a set number of bytes
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableStorage
storage
-
Fields inherited from class ghidra.program.model.pcode.SymbolEntry
pcaddr, symbol
-
-
Constructor Summary
Constructors Constructor Description MappedEntry(HighSymbol sym)
For use with restoreXMLMappedEntry(HighSymbol sym, VariableStorage store, Address addr)
Construct given a symbol, storage, and first-use Address
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
Get the number of bytes consumed by the symbol when using this storageVariableStorage
getStorage()
Get the storage associated with this particular mapping of the Symbolboolean
isReadOnly()
boolean
isVolatile()
void
restoreXML(XmlPullParser parser)
Restore this entry from the given XML stream.void
saveXml(java.lang.StringBuilder buf)
Save this entry as (a set of) XML tags to the given stream-
Methods inherited from class ghidra.program.model.pcode.SymbolEntry
buildRangelistXML, getPCAdress, parseRangeList
-
-
-
-
Field Detail
-
storage
protected VariableStorage storage
-
-
Constructor Detail
-
MappedEntry
public MappedEntry(HighSymbol sym)
For use with restoreXML- Parameters:
sym
- is the owning symbol
-
MappedEntry
public MappedEntry(HighSymbol sym, VariableStorage store, Address addr)
Construct given a symbol, storage, and first-use Address- Parameters:
sym
- is the given symbolstore
- is the given storageaddr
- is the first-use Address (or null)
-
-
Method Detail
-
restoreXML
public void restoreXML(XmlPullParser parser) throws PcodeXMLException
Description copied from class:SymbolEntry
Restore this entry from the given XML stream. Typically more than one tag is consumed- Specified by:
restoreXML
in classSymbolEntry
- Parameters:
parser
- is the given XML stream- Throws:
PcodeXMLException
- if the XML is invalid
-
saveXml
public void saveXml(java.lang.StringBuilder buf)
Description copied from class:SymbolEntry
Save this entry as (a set of) XML tags to the given stream- Specified by:
saveXml
in classSymbolEntry
- Parameters:
buf
- is the given stream
-
getStorage
public VariableStorage getStorage()
Description copied from class:SymbolEntry
Get the storage associated with this particular mapping of the Symbol- Specified by:
getStorage
in classSymbolEntry
- Returns:
- the storage object
-
getSize
public int getSize()
Description copied from class:SymbolEntry
Get the number of bytes consumed by the symbol when using this storage- Specified by:
getSize
in classSymbolEntry
- Returns:
- the size of this entry
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classSymbolEntry
- Returns:
- true if the mapped storage is read-only
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatile
in classSymbolEntry
- Returns:
- true if the mapped storage is volatile
-
-