Package ghidra.program.database.symbol
Class LibrarySymbol
- java.lang.Object
- 
- ghidra.program.database.DatabaseObject
- 
- ghidra.program.database.symbol.SymbolDB
- 
- ghidra.program.database.symbol.LibrarySymbol
 
 
 
- 
- 
Constructor SummaryConstructors Constructor Description LibrarySymbol(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, Address address, Record record)Constructs a new Library Symbol
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetObject()ProgramLocationgetProgramLocation()SymbolTypegetSymbolType()Returns the symbol typebooleanisExternal()Returns true if this an external symbol.booleanisPrimary()booleanisValidParent(Namespace parent)Returns whether the given parent is valid for this Symbol.voidsetName(java.lang.String newName, SourceType source)Sets the name this symbol.voidsetNameAndNamespace(java.lang.String newName, Namespace newNamespace, SourceType source)Sets the symbols name and namespace.voidsetSymbolData3(java.lang.String newPath)- 
Methods inherited from class ghidra.program.database.symbol.SymbolDBdelete, doIsPinned, doSetPinned, equals, getAddress, getID, getName, getName, getParentNamespace, getParentSymbol, getPath, getProgram, getReferenceCount, getReferences, getReferences, getSource, getSymbolData1, getSymbolData2, getSymbolData3, getSymbolsDynamicallyRenamedByMyRename, hashCode, hasMultipleReferences, hasReferences, isDeleting, isDescendant, isDynamic, isExternalEntryPoint, isGlobal, isPinned, move, refresh, refresh, removeAllReferencesTo, setAddress, setNamespace, setPinned, setPrimary, setSource, setSymbolData1, setSymbolData2, toString, validateNameSource
 - 
Methods inherited from class ghidra.program.database.DatabaseObjectcheckDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setInvalid, validate
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface ghidra.program.model.symbol.SymbolcheckIsValid
 
- 
 
- 
- 
- 
Constructor Detail- 
LibrarySymbolpublic LibrarySymbol(SymbolManager symbolMgr, DBObjectCache<SymbolDB> cache, Address address, Record record) Constructs a new Library Symbol- Parameters:
- symbolMgr- the symbol manager
- cache- symbol object cache
- address- the address for this symbol
- record- the record for this symbol
 
 
- 
 - 
Method Detail- 
setNamepublic void setName(java.lang.String newName, SourceType source) throws DuplicateNameException, InvalidInputExceptionDescription copied from interface:SymbolSets the name this symbol. If this symbol is dynamic, then the name is set and the symbol is no longer dynamic.- Specified by:
- setNamein interface- Symbol
- Overrides:
- setNamein class- SymbolDB
- Parameters:
- newName- the new name for this symbol.
- source- the source of this symbol
 Some symbol types, such as function symbols, can set the source to Symbol.DEFAULT.
- Throws:
- DuplicateNameException- if name already exists as the name of another symbol or alias.
- InvalidInputException- if alias contains blank characters, is zero length, or is null
 
 - 
setNameAndNamespacepublic void setNameAndNamespace(java.lang.String newName, Namespace newNamespace, SourceType source) throws DuplicateNameException, InvalidInputException, CircularDependencyExceptionDescription copied from interface:SymbolSets the symbols name and namespace. This is provided to allow the caller to avoid a name conflict by creating an autonomous action.- Specified by:
- setNameAndNamespacein interface- Symbol
- Overrides:
- setNameAndNamespacein class- SymbolDB
- Parameters:
- newName- new symbol name
- newNamespace- new parent namespace
- source- the source of this symbol
 Some symbol types, such as function symbols, can set the source to Symbol.DEFAULT.
- Throws:
- DuplicateNameException- if newNamespace already contains a symbol with this symbol's name
- InvalidInputException- is newNamespace is not a valid parent for this symbol
- CircularDependencyException- if this symbol is an ancestor of newNamespace
 
 - 
setSymbolData3public void setSymbolData3(java.lang.String newPath) - Overrides:
- setSymbolData3in class- SymbolDB
- See Also:
- ghidra.program.model.symbol.Symbol#setSymbolData3(java.lang.String)
 
 - 
getSymbolTypepublic SymbolType getSymbolType() Description copied from interface:SymbolReturns the symbol type- See Also:
- Symbol.getSymbolType()
 
 - 
isExternalpublic boolean isExternal() Description copied from interface:SymbolReturns true if this an external symbol.- Returns:
- true if this an external symbol.
- See Also:
- Address.isExternalAddress()
 
 - 
getObjectpublic java.lang.Object getObject() - See Also:
- Symbol.getObject()
 
 - 
isPrimarypublic boolean isPrimary() - Specified by:
- isPrimaryin interface- Symbol
- Specified by:
- isPrimaryin class- SymbolDB
- See Also:
- Symbol.isPrimary()
 
 - 
getProgramLocationpublic ProgramLocation getProgramLocation() - See Also:
- Symbol.getProgramLocation()
 
 - 
isValidParentpublic boolean isValidParent(Namespace parent) Description copied from interface:SymbolReturns whether the given parent is valid for this Symbol.- Specified by:
- isValidParentin interface- Symbol
- Specified by:
- isValidParentin class- SymbolDB
- See Also:
- Symbol.isValidParent(ghidra.program.model.symbol.Namespace)
 
 
- 
 
-