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
FieldsModifier and TypeFieldDescriptionprotected final FunctionDeprecated.protected final intDeprecated.protected final SourceTypeDeprecated.protected StringDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAddParameterCommand(Function function, int ordinal, SourceType source) Deprecated.AddParameterCommand(Function function, Parameter parameter, int ordinal, SourceType source) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Applies the command to the given domain object.getName()Deprecated.Returns the name of this command.protected ParametergetParameter(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:CommandApplies the command to the given domain object. -
getStatusMsg
Deprecated.Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand<Program>- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Deprecated.Description copied from interface:CommandReturns the name of this command.
-
UpdateFunctionCommandorApplyFunctionSignatureCmd.