Class OpenProgramTask.OpenProgramRequest

java.lang.Object
ghidra.app.util.task.OpenProgramTask.OpenProgramRequest
Enclosing class:
OpenProgramTask

public class OpenProgramTask.OpenProgramRequest extends Object
  • Constructor Details

    • OpenProgramRequest

      public OpenProgramRequest(URL ghidraURL)
    • OpenProgramRequest

      public OpenProgramRequest(DomainFile domainFile, int version, boolean forceReadOnly)
  • Method Details

    • getDomainFile

      public DomainFile getDomainFile()
      Get the DomainFile which corresponds to program open request. This will be null for all URL-based open requests.
      Returns:
      DomainFile which corresponds to program open request or null.
    • getGhidraURL

      public URL getGhidraURL()
      Get the URL which corresponds to program open request. This will be null for all non-URL-based open requests. URL will be a GhidraURL.
      Returns:
      URL which corresponds to program open request or null.
    • getLinkURL

      public URL getLinkURL()
      Get the URL which corresponds to the link domainFile used to open a program.
      Returns:
      URL which corresponds to the link domainFile used to open a program.
    • getProgram

      public Program getProgram()
      Get the open Program instance which corresponds to this open request.
      Returns:
      program instance or null if never opened.
    • release

      public void release()
      Release opened program. This must be done once, and only once, on a successful open request. If handing ownership off to another consumer, they should be added as a program consumer prior to invoking this method. Releasing the last consumer will close the program instance.