Package ghidra.program.database.symbol
Class GlobalRegisterSymbol
- java.lang.Object
-
- ghidra.program.database.DatabaseObject
-
- ghidra.program.database.symbol.SymbolDB
-
- ghidra.program.database.symbol.GlobalRegisterSymbol
-
-
Constructor Summary
Constructors Constructor Description GlobalRegisterSymbol(SymbolManager mgr, DBObjectCache<SymbolDB> cache, Address addr, DBRecord record)Construct a new GlobalRegisterSymbol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetObject()ProgramLocationgetProgramLocation()SymbolTypegetSymbolType()Returns this symbol's typebooleanisExternal()Returns true if this an external symbol.booleanisPrimary()booleanisValidParent(Namespace parent)Determines if the given parent is valid for this Symbol.-
Methods inherited from class ghidra.program.database.symbol.SymbolDB
checkDeleted, delete, doCheckIsPrimary, doGetName, doGetParentNamespace, doIsPinned, doSetNameAndNamespace, doSetPinned, doSetPrimary, equals, getAddress, getDataTypeId, getID, getName, getName, getParentNamespace, getParentSymbol, getPath, getProgram, getReferenceCount, getReferences, getReferences, getSource, getSymbolsDynamicallyRenamedByMyRename, getSymbolStringData, getVariableOffset, hashCode, hasMultipleReferences, hasReferences, isDeleted, isDeleting, isDescendant, isDynamic, isExternalEntryPoint, isGlobal, isPinned, moveLowLevel, refresh, refresh, setAddress, setDataTypeId, setName, setNameAndNamespace, setNamespace, setPinned, setPrimary, setSource, setSymbolStringData, setVariableOffset, toString, validateNameSource
-
Methods inherited from class ghidra.program.database.DatabaseObject
checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setInvalid, validate
-
-
-
-
Constructor Detail
-
GlobalRegisterSymbol
public GlobalRegisterSymbol(SymbolManager mgr, DBObjectCache<SymbolDB> cache, Address addr, DBRecord record)
Construct a new GlobalRegisterSymbol.- Parameters:
mgr- the symbol managercache- symbol object cacheaddr- the address for this symbol.record- the record for this symbol.
-
-
Method Detail
-
getSymbolType
public SymbolType getSymbolType()
Description copied from interface:SymbolReturns this symbol's type- Returns:
- symbol type
- See Also:
Symbol.getSymbolType()
-
isExternal
public boolean isExternal()
Description copied from interface:SymbolReturns true if this an external symbol.- Returns:
- true if this an external symbol.
- See Also:
Address.isExternalAddress()
-
getObject
public java.lang.Object getObject()
- Returns:
- object associated with this symbol or null if symbol has been deleted
- See Also:
Symbol.getObject()
-
isPrimary
public boolean isPrimary()
- Specified by:
isPrimaryin interfaceSymbol- Specified by:
isPrimaryin classSymbolDB- Returns:
- true if this symbol is primary
- See Also:
Symbol.isPrimary()
-
getProgramLocation
public ProgramLocation getProgramLocation()
- Returns:
- a program location corresponding to this symbol
- See Also:
Symbol.getProgramLocation()
-
isValidParent
public boolean isValidParent(Namespace parent)
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- Specified by:
isValidParentin classSymbolDB- Parameters:
parent- prospective parent namespace for this symbol- Returns:
- true if parent is valid
- See Also:
Symbol.isValidParent(ghidra.program.model.symbol.Namespace)
-
-