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
public class GlobalVariableSymbolDB extends VariableSymbolDB
-
-
Constructor Summary
Constructors Constructor Description GlobalVariableSymbolDB(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, VariableStorageManagerDB variableMgr, Address address, DBRecord record)
Constructs a new GlobalVariableSymbolDB
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
doGetName()
The code for creating the name content for this symbol.java.lang.Object
getObject()
SymbolType
getSymbolType()
Returns this symbol's type-
Methods inherited from class ghidra.program.database.symbol.VariableSymbolDB
delete, equals, getDataType, getFirstUseOffset, getFunction, getOrdinal, getProgramLocation, getReferenceCount, getReferences, getVariableStorage, hasMultipleReferences, hasReferences, isExternal, isPrimary, isValidParent, refresh, setFirstUseOffset, setInvalid, setOrdinal, setStorageAndDataType, validateNameSource
-
Methods 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, toString
-
Methods inherited from class ghidra.program.database.DatabaseObject
checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, validate
-
-
-
-
Constructor Detail
-
GlobalVariableSymbolDB
public GlobalVariableSymbolDB(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, VariableStorageManagerDB variableMgr, Address address, DBRecord record)
Constructs a new GlobalVariableSymbolDB- Parameters:
symbolMgr
- the symbol managercache
- symbol object cacheaddress
- the address of the symbol (stack address)record
- the record for the symbol
-
-
Method Detail
-
getSymbolType
public SymbolType getSymbolType()
Description copied from interface:Symbol
Returns this symbol's type- Specified by:
getSymbolType
in interfaceSymbol
- Overrides:
getSymbolType
in classVariableSymbolDB
- Returns:
- symbol type
- See Also:
Symbol.getSymbolType()
-
getObject
public java.lang.Object getObject()
- Specified by:
getObject
in interfaceSymbol
- Overrides:
getObject
in classVariableSymbolDB
- Returns:
- object associated with this symbol or null if symbol has been deleted
- See Also:
Symbol.getObject()
-
doGetName
protected java.lang.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 classVariableSymbolDB
- Returns:
- the name
-
-