Class DecompilationOptions

java.lang.Object
com.pnfsoftware.jeb.core.units.code.DecompilationOptions

public class DecompilationOptions extends Object
Decompilation options used in DecompilationContexts. Immutable.
  • Field Details

  • Method Details

    • safe

      public static DecompilationOptions safe(DecompilationOptions opt)
      Return a non-null options object.
      Parameters:
      opt - options, possibly null
      Returns:
      provided options, or DEFAULT
    • getFlags

      public int getFlags()
      Get decompilation flags.
      Returns:
      decompilation flags
    • getMaxTimePerMethod

      public Long getMaxTimePerMethod()
      Get the maximum time allowed per method.
      Returns:
      maximum time per method, in milliseconds, or null
    • getMaxTimeTotal

      public Long getMaxTimeTotal()
      Get the maximum total decompilation time.
      Returns:
      maximum total time, in milliseconds, or null
    • getPostDecompilationCallback

      public Consumer<String> getPostDecompilationCallback()
      Get the post-decompilation callback.
      Returns:
      post-decompilation callback, or null
    • asBuilder

      public DecompilationOptions.Builder asBuilder()
      Create a builder initialized with these options.
      Returns:
      initialized builder