Package jadx.gui.jobs
Class DecompileTask
- java.lang.Object
-
- jadx.gui.jobs.CancelableBackgroundTask
-
- jadx.gui.jobs.DecompileTask
-
- All Implemented Interfaces:
Cancelable,IBackgroundTask
public class DecompileTask extends CancelableBackgroundTask
-
-
Constructor Summary
Constructors Constructor Description DecompileTask(MainWindow mainWindow)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcalcDecompileTimeLimit(int classCount)booleancanBeCanceled()booleancheckMemoryUsage()Executor will check memory usage on every tick and cancel job if no free memory available.ProcessResultgetResult()java.lang.StringgetTitle()voidonDone(ITaskInfo taskInfo)Called on executor thread after the all jobs finished.java.util.List<java.lang.Runnable>scheduleJobs()jadx.api.utils.tasks.ITaskExecutorscheduleTasks()inttimeLimit()Global (for all jobs) time limit in milliseconds (0 - to disable).-
Methods inherited from class jadx.gui.jobs.CancelableBackgroundTask
cancel, isCanceled, resetCancel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadx.gui.jobs.Cancelable
getCancelTimeoutMS, getShutdownTimeoutMS
-
Methods inherited from interface jadx.gui.jobs.IBackgroundTask
getProgressListener, getTaskProgress, onFinish
-
-
-
-
Constructor Detail
-
DecompileTask
public DecompileTask(MainWindow mainWindow)
-
-
Method Detail
-
calcDecompileTimeLimit
public static int calcDecompileTimeLimit(int classCount)
-
getTitle
public java.lang.String getTitle()
-
scheduleTasks
public jadx.api.utils.tasks.ITaskExecutor scheduleTasks()
-
scheduleJobs
public java.util.List<java.lang.Runnable> scheduleJobs()
-
onDone
public void onDone(ITaskInfo taskInfo)
Description copied from interface:IBackgroundTaskCalled on executor thread after the all jobs finished.
-
canBeCanceled
public boolean canBeCanceled()
- Specified by:
canBeCanceledin interfaceIBackgroundTask- Overrides:
canBeCanceledin classCancelableBackgroundTask
-
timeLimit
public int timeLimit()
Description copied from interface:IBackgroundTaskGlobal (for all jobs) time limit in milliseconds (0 - to disable).
-
checkMemoryUsage
public boolean checkMemoryUsage()
Description copied from interface:IBackgroundTaskExecutor will check memory usage on every tick and cancel job if no free memory available.
-
getResult
public ProcessResult getResult()
-
-