Class SearchTask

    • Constructor Detail

      • SearchTask

        public SearchTask​(MainWindow mainWindow,
                          java.util.function.Consumer<JNode> results,
                          java.util.function.BiConsumer<ITaskInfo,​java.lang.Boolean> onFinish)
    • Method Detail

      • addProviderJob

        public void addProviderJob​(ISearchProvider provider)
      • setResultsLimit

        public void setResultsLimit​(int limit)
      • fetchResults

        public void fetchResults()
      • addResult

        public boolean addResult​(JNode resultNode)
      • waitTask

        public void waitTask()
      • getTitle

        public java.lang.String getTitle()
      • scheduleTasks

        public jadx.api.utils.tasks.ITaskExecutor scheduleTasks()
      • onFinish

        public void onFinish​(ITaskInfo task)
        Description copied from interface: IBackgroundTask
        Executed on the Event Dispatch Thread after the all jobs finished.
      • checkMemoryUsage

        public boolean checkMemoryUsage()
        Description copied from interface: IBackgroundTask
        Executor will check memory usage on every tick and cancel job if no free memory available.
      • getTaskProgress

        @NotNull
        public @NotNull ITaskProgress getTaskProgress()
        Description copied from interface: IBackgroundTask
        Get task progress (Optional)
      • setProgressListener

        public void setProgressListener​(java.util.function.Consumer<ITaskProgress> progressListener)
      • getProgressListener

        @Nullable
        public @Nullable java.util.function.Consumer<ITaskProgress> getProgressListener()
        Description copied from interface: IBackgroundTask
        Return progress notifications listener (use executor tick rate and thread) (Optional)
      • getCancelTimeoutMS

        public int getCancelTimeoutMS()
      • getShutdownTimeoutMS

        public int getShutdownTimeoutMS()