# Class: com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder

Builder of decompilation options.

## Method: build
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions`

Description: Build an options object, used by the decompilation context.
return: the newly built options object

## Method: flags
- parameter: `flags`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder`

Description: Set decompilation flags. Refer to `IDecompilerUnit.FLAG_xxx`.
parameter: flags: decompilation flags
return: this builder

## Method: maxTimePerMethod
- parameter: `maxTimePerMethod`, type: `java.lang.Long`
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder`

Description: 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\).
parameter: maxTimePerMethod: in milliseconds
return: this builder

## Method: maxTimeTotal
- parameter: `maxTimeTotal`, type: `java.lang.Long`
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder`

Description: 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\).
parameter: maxTimeTotal: in milliseconds
return: this builder

## Method: postDecompilationCallback
- parameter: `postDecompilationCallback`, type: `java.util.function.Consumer<java.lang.String>`
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder`

Description: 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 by `dexdec` only \(`gendec` disregards the option.\)
parameter: postDecompilationCallback: a callback \(called after a decompilation, on the            decompilation thread\)
return: this builder

## Static Method: newInstance
- return type: `com.pnfsoftware.jeb.core.units.code.DecompilationOptions.Builder`

Description: Create a builder.
return: builder

