Class AddParameterCommand

java.lang.Object
ghidra.app.cmd.function.AddParameterCommand
All Implemented Interfaces:
Command<Program>
Direct Known Subclasses:
AddMemoryParameterCommand, AddRegisterParameterCommand, AddStackParameterCommand

@Deprecated(since="11.1") public class AddParameterCommand extends Object implements Command<Program>
Deprecated.
function signatures should be modified in their entirety using either UpdateFunctionCommand or ApplyFunctionSignatureCmd.
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 Details

    • function

      protected final Function function
      Deprecated.
    • ordinal

      protected final int ordinal
      Deprecated.
    • source

      protected final SourceType source
      Deprecated.
    • statusMessage

      protected String statusMessage
      Deprecated.
  • Constructor Details

    • AddParameterCommand

      public AddParameterCommand(Function function, Parameter parameter, int ordinal, SourceType source)
      Deprecated.
    • AddParameterCommand

      protected AddParameterCommand(Function function, int ordinal, SourceType source)
      Deprecated.
  • Method Details

    • getParameter

      protected Parameter getParameter(Program program) throws InvalidInputException
      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

      public final boolean applyTo(Program program)
      Deprecated.
      Description copied from interface: Command
      Applies the command to the given domain object.
      Specified by:
      applyTo in interface Command<Program>
      Parameters:
      program - domain object that this command is to be applied.
      Returns:
      true if the command applied successfully
    • getStatusMsg

      public String getStatusMsg()
      Deprecated.
      Description copied from interface: Command
      Returns the status message indicating the status of the command.
      Specified by:
      getStatusMsg in interface Command<Program>
      Returns:
      reason for failure, or null if the status of the command was successful
    • getName

      public String getName()
      Deprecated.
      Description copied from interface: Command
      Returns the name of this command.
      Specified by:
      getName in interface Command<Program>
      Returns:
      the name of this command