Package ghidra.app.cmd.function
Class SetVariableNameCmd
java.lang.Object
ghidra.app.cmd.function.SetVariableNameCmd
- All Implemented Interfaces:
Command
Command to rename a stack variable.
-
Constructor Summary
ConstructorsConstructorDescriptionSetVariableNameCmd
(Address fnEntry, String varName, String newName, SourceType source) Constructs a new command to rename a stack/reg variable.SetVariableNameCmd
(Variable var, String newName, SourceType source) Constructs a new command to rename a stack/reg variable. -
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
-
SetVariableNameCmd
Constructs a new command to rename a stack/reg variable.- Parameters:
var
- variable to renamenewName
- the new name to give to the stack variable.source
- the source of this variable name
-
SetVariableNameCmd
Constructs a new command to rename a stack/reg variable.- Parameters:
fnEntry
-varName
-newName
-source
-
-
-
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.
-