Package ghidra.app.cmd.function
Class AddParameterCommand
java.lang.Object
ghidra.app.cmd.function.AddParameterCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AddMemoryParameterCommand,AddRegisterParameterCommand,AddStackParameterCommand
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Functionprotected intprotected Parameterprotected SourceTypeprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAddParameterCommand(Function function, int ordinal, SourceType source) AddParameterCommand(Function function, Parameter parameter, int ordinal, SourceType source) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(DomainObject obj) Applies the command to the given domain object.getName()Returns the name of this command.protected ParametergetParameter(Program program) Returns the status message indicating the status of the command.
-
Field Details
-
function
-
parameter
-
statusMessage
-
ordinal
protected int ordinal -
source
-
-
Constructor Details
-
AddParameterCommand
-
AddParameterCommand
-
-
Method Details
-
getParameter
- Throws:
InvalidInputException
-
applyTo
Description copied from interface:CommandApplies the command to the given domain object. -
getStatusMsg
Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:CommandReturns the name of this command.
-