Class DecompilerCallback<R>

    • Method Detail

      • process

        public abstract R process​(DecompileResults results,
                                  TaskMonitor monitor)
                           throws java.lang.Exception
        This is called when a function is decompiled.
        Parameters:
        results - the decompiled results
        monitor - the task monitor
        Returns:
        the client result
        Throws:
        java.lang.Exception - if there is any issue processing the given results
      • process

        public R process​(Function f,
                         TaskMonitor monitor)
                  throws java.lang.Exception
        Description copied from interface: QCallback
        Processes the given item in background thread provided by a GThreadPool.
        Specified by:
        process in interface QCallback<Function,​R>
        Parameters:
        f - the item to process.
        monitor - a monitor that can be used to check for cancellation and to report progress and transient messages.
        Returns:
        The return value resulting from processing the item.
        Throws:
        java.lang.Exception
      • setTimeout

        public void setTimeout​(int timeoutSecs)
        Sets the timeout for each decompile
        Parameters:
        timeoutSecs - the timeout in seconds
      • dispose

        public void dispose()
        Call this when all work is done so that the pooled decompilers can be disposed