Class CreateMultipleFunctionsCmd

  • All Implemented Interfaces:

    public class CreateMultipleFunctionsCmd
    extends BackgroundCommand
    Command for Creating multiple functions from a selection. This tries to create functions by working from the minimum address to the maximum address in the selection. Any addresses in the selection that are already in existing functions are discarded. Every time a function is created, all the other addresses for that function are also discarded.
    • Constructor Detail

    • Method Detail

      • applyTo

        public boolean applyTo​(DomainObject obj,
                               TaskMonitor monitor)
        Description copied from class: BackgroundCommand
        Method called when this command is to apply changes to the given domain object. A monitor is provided to display status information about the command as it executes in the background.
        Specified by:
        applyTo in class BackgroundCommand
        obj - domain object that will be affected by the command
        monitor - monitor to show progress of the command
        true if the command applied successfully
      • createFunction

        public final Function createFunction​(Address entryPoint,
                                             Program currentProgram,
                                             TaskMonitor monitor)
        Creates a function at entry point in the specified program.
        entryPoint - the entry point of the function
        currentProgram - the program where the function should be created
        monitor - the task monitor that allows the user to cancel
        the new function or null if the function was not created