Package ghidra.app.cmd.function
Class AddParameterCommand
java.lang.Object
ghidra.app.cmd.function.AddParameterCommand
- Direct Known Subclasses:
AddMemoryParameterCommand
,AddRegisterParameterCommand
,AddStackParameterCommand
@Deprecated(since="11.1")
public class AddParameterCommand
extends Object
implements Command<Program>
Deprecated.
Allows for the adding of a parameter to a given function.
Note: If no ordinal is provided to this class at construction time, then
the ordinal of hte given parameter will be used.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Function
Deprecated.protected final int
Deprecated.protected final SourceType
Deprecated.protected String
Deprecated. -
Constructor Summary
ModifierConstructorDescriptionprotected
AddParameterCommand
(Function function, int ordinal, SourceType source) Deprecated.AddParameterCommand
(Function function, Parameter parameter, int ordinal, SourceType source) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Deprecated.Applies the command to the given domain object.getName()
Deprecated.Returns the name of this command.protected Parameter
getParameter
(Program program) Deprecated.Get parameter to be addedDeprecated.Returns the status message indicating the status of the command.
-
Field Details
-
function
Deprecated. -
ordinal
protected final int ordinalDeprecated. -
source
Deprecated. -
statusMessage
Deprecated.
-
-
Constructor Details
-
AddParameterCommand
Deprecated. -
AddParameterCommand
Deprecated.
-
-
Method Details
-
getParameter
Deprecated.Get parameter to be added- Parameters:
program
- target program- Returns:
- parameter to be added
- Throws:
InvalidInputException
- if unable to generate parameter due to invalid data
-
applyTo
Deprecated.Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Deprecated.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
Deprecated.Description copied from interface:Command
Returns the name of this command.
-
UpdateFunctionCommand
orApplyFunctionSignatureCmd
.