Class DecompilationOptions.Builder
java.lang.Object
com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder
- Enclosing class:
- DecompilationOptions
Builder of decompilation options.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an options object, used by the decompilation context.flags
(int flags) Set decompilation flags.maxTimePerMethod
(Long maxTimePerMethod) Set an optional maximum duration allowed to decompile a single method.maxTimeTotal
(Long maxTimeTotal) When decompiling an entity or entities comprising multiple methods (eg, a class or multiple classes or collection of methods, or a whole program), this method allows setting the maximum duration allowed before returning.static DecompilationOptions.Builder
postDecompilationCallback
(Consumer<String> postDecompilationCallback) Set a post-decompilation callback.
-
Method Details
-
newInstance
-
flags
Set decompilation flags. Refer toIDecompilerUnit.FLAG_xxx
.- Parameters:
flags
-- Returns:
- this builder
-
maxTimePerMethod
Set an optional maximum duration allowed to decompile a single method. 0 means never time out.If left null, the decompiler's setting is used, if any (else 0 is used).
- Parameters:
maxTimePerMethod
- in milliseconds- Returns:
- this builder
-
maxTimeTotal
When decompiling an entity or entities comprising multiple methods (eg, a class or multiple classes or collection of methods, or a whole program), this method allows setting the maximum duration allowed before returning.If left null, the decompiler's setting is used, if any (else 0 is used).
- Parameters:
maxTimeTotal
- in milliseconds- Returns:
- this builder
-
postDecompilationCallback
public DecompilationOptions.Builder postDecompilationCallback(Consumer<String> postDecompilationCallback) Set a post-decompilation callback. The callback is called by a decompiler after a class and its contents was decompiled. Currently, this option is honored bydexdec
only (gendec
disregards the option.)- Parameters:
postDecompilationCallback
- a callback (called after a decompilation, on the decompilation thread)- Returns:
- this builder
-
build
Build an options object, used by the decompilation context.- Returns:
- the newly built options object
-