Package ghidra.app.cmd.function
Class SetVariableNameCmd
java.lang.Object
ghidra.app.cmd.function.SetVariableNameCmd
Command to rename a stack variable.
-
Constructor Summary
ConstructorDescriptionSetVariableNameCmd
(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
-
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<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command.
-