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 Function
protected int
protected Parameter
protected SourceType
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AddParameterCommand
(Function function, int ordinal, SourceType source) AddParameterCommand
(Function function, Parameter parameter, int ordinal, SourceType source) -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.protected Parameter
getParameter
(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: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.
-