Package ghidra.program.database.symbol
Class GlobalVariableSymbolDB
java.lang.Object
ghidra.program.database.DatabaseObject
ghidra.program.database.symbol.SymbolDB
ghidra.program.database.symbol.VariableSymbolDB
ghidra.program.database.symbol.GlobalVariableSymbolDB
- All Implemented Interfaces:
Symbol
-
Field Summary
Fields inherited from class ghidra.program.database.DatabaseObject
key -
Constructor Summary
ConstructorsConstructorDescriptionGlobalVariableSymbolDB(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, VariableStorageManagerDB variableMgr, Address address, DBRecord record) Constructs a new GlobalVariableSymbolDB which are restricted to the global namespace -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe code for creating the name content for this symbol.Returns this symbol's typebooleanisValidParent(Namespace parent) Determines if the given parent is valid for this Symbol.Methods inherited from class ghidra.program.database.symbol.VariableSymbolDB
delete, equals, getDataType, getFirstUseOffset, getFunction, getOrdinal, getProgramLocation, getReferenceCount, getReferences, getVariableStorage, hasMultipleReferences, hasReferences, isExternal, isPrimary, refresh, setFirstUseOffset, setInvalid, setOrdinal, setStorageAndDataType, validateNameSourceMethods inherited from class ghidra.program.database.symbol.SymbolDB
checkDeleted, doCheckIsPrimary, doGetParentNamespace, doIsPinned, doSetNameAndNamespace, doSetPinned, doSetPrimary, getAddress, getDataTypeId, getID, getName, getName, getParentNamespace, getParentSymbol, getPath, getProgram, getReferences, getSource, getSymbolsDynamicallyRenamedByMyRename, getSymbolStringData, getVariableOffset, hashCode, isDeleted, isDeleting, isDescendant, isDynamic, isExternalEntryPoint, isGlobal, isPinned, moveLowLevel, refresh, setAddress, setDataTypeId, setName, setNameAndNamespace, setNamespace, setPinned, setPrimary, setSource, setSymbolStringData, setVariableOffset, toStringMethods inherited from class ghidra.program.database.DatabaseObject
checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, validate
-
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 managercache- symbol object cachevariableMgr- variable storage manageraddress- the address of the symbol (stack address)record- the record for the symbol
-
-
Method Details
-
getSymbolType
Description copied from interface:SymbolReturns this symbol's type- Specified by:
getSymbolTypein interfaceSymbol- Overrides:
getSymbolTypein classVariableSymbolDB- Returns:
- symbol type
-
isValidParent
Description copied from interface:SymbolDetermines if the given parent is valid for this Symbol. Specified namespace must belong to the same symbol table as this symbol.- Specified by:
isValidParentin interfaceSymbol- Overrides:
isValidParentin classVariableSymbolDB- Parameters:
parent- prospective parent namespace for this symbol- Returns:
- true if parent is valid
-
getObject
- Specified by:
getObjectin interfaceSymbol- Overrides:
getObjectin classVariableSymbolDB- Returns:
- object associated with this symbol or null if symbol has been deleted
-
doGetName
Description copied from class:SymbolDBThe code for creating the name content for this symbol. This code will be called with the symbol's lock.- Overrides:
doGetNamein classVariableSymbolDB- Returns:
- the name
-