Class 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
    • 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 symbol
        store - is the given storage
        addr - is the first-use Address (or null)
    • Method Detail

      • 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 class SymbolEntry
        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 class SymbolEntry
        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 class SymbolEntry
        Returns:
        the size of this entry
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in class SymbolEntry
        Returns:
        true if the mapped storage is read-only
      • isVolatile

        public boolean isVolatile()
        Specified by:
        isVolatile in class SymbolEntry
        Returns:
        true if the mapped storage is volatile