Package ghidra.app.cmd.refs
Class AssociateSymbolCmd
java.lang.Object
ghidra.app.cmd.refs.AssociateSymbolCmd
- All Implemented Interfaces:
Command
Command class for associating a reference with a specific label
-
Constructor Summary
ConstructorsConstructorDescriptionAssociateSymbolCmd
(Reference ref, Namespace scope) Constructor.AssociateSymbolCmd
(Reference ref, String symbolName) Create a associate symbol command for a global symbolAssociateSymbolCmd
(Reference ref, String symbolName, Namespace scope) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Constructor Details
-
AssociateSymbolCmd
Constructor.- Parameters:
ref
- the reference to associate with a symbolscope
- scope that has the symbol to associate with the reference
-
AssociateSymbolCmd
Constructor- Parameters:
ref
- the reference to associate with a symbolsymbolName
- the name of the symbol with which to associate the reference.scope
- scope of the symbol with the given symbolName
-
AssociateSymbolCmd
Create a associate symbol command for a global symbol- Parameters:
ref
-symbolName
-
-
-
Method Details
-
applyTo
Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:Command
Returns the name of this command.
-