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 VariableStoragestorage-
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 intgetSize()Get the number of bytes consumed by the symbol when using this storageVariableStoragegetStorage()Get the storage associated with this particular mapping of the SymbolbooleanisReadOnly()booleanisVolatile()voidrestoreXML(XmlPullParser parser)Restore this entry from the given XML stream.voidsaveXml(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:SymbolEntryRestore this entry from the given XML stream. Typically more than one tag is consumed- Specified by:
restoreXMLin 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:SymbolEntrySave this entry as (a set of) XML tags to the given stream- Specified by:
saveXmlin classSymbolEntry- Parameters:
buf- is the given stream
-
getStorage
public VariableStorage getStorage()
Description copied from class:SymbolEntryGet the storage associated with this particular mapping of the Symbol- Specified by:
getStoragein classSymbolEntry- Returns:
- the storage object
-
getSize
public int getSize()
Description copied from class:SymbolEntryGet the number of bytes consumed by the symbol when using this storage- Specified by:
getSizein classSymbolEntry- Returns:
- the size of this entry
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin classSymbolEntry- Returns:
- true if the mapped storage is read-only
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatilein classSymbolEntry- Returns:
- true if the mapped storage is volatile
-
-