Class GlobalVariableSymbolDB

All Implemented Interfaces:
Symbol

public class GlobalVariableSymbolDB extends VariableSymbolDB
  • Constructor Details

    • GlobalVariableSymbolDB

      public GlobalVariableSymbolDB(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, VariableStorageManagerDB variableMgr, Address address, DBRecord record)
      Constructs a new GlobalVariableSymbolDB which are restricted to the global namespace
      Parameters:
      symbolMgr - the symbol manager
      cache - symbol object cache
      variableMgr - variable storage manager
      address - the address of the symbol (stack address)
      record - the record for the symbol
  • Method Details

    • getSymbolType

      public SymbolType getSymbolType()
      Description copied from interface: Symbol
      Returns this symbol's type
      Specified by:
      getSymbolType in interface Symbol
      Overrides:
      getSymbolType in class VariableSymbolDB
      Returns:
      symbol type
    • isValidParent

      public boolean isValidParent(Namespace parent)
      Description copied from interface: Symbol
      Determines if the given parent is valid for this Symbol. Specified namespace must belong to the same symbol table as this symbol.
      Specified by:
      isValidParent in interface Symbol
      Overrides:
      isValidParent in class VariableSymbolDB
      Parameters:
      parent - prospective parent namespace for this symbol
      Returns:
      true if parent is valid
    • getObject

      public Object getObject()
      Specified by:
      getObject in interface Symbol
      Overrides:
      getObject in class VariableSymbolDB
      Returns:
      object associated with this symbol or null if symbol has been deleted
    • doGetName

      protected String doGetName()
      Description copied from class: SymbolDB
      The code for creating the name content for this symbol. This code will be called with the symbol's lock.
      Overrides:
      doGetName in class VariableSymbolDB
      Returns:
      the name