public class


extends DecompilerExporter
   ↳ com.pnfsoftware.jeb.core.units.code.DecompilerExporter
     ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.NativeDecompilerExporter

Class Overview

Helper class used to decompile and export to source files all or a subset of classes or methods of a native code unit.

Example: export all top-level items to an output folder:

 INativeDecompilerUnit decomp = ...; // retrieved from the current IRuntimeProject
 File outdir = ...;
 DecompilerExporter exp = decomp.getExporter();
 exp.setOutputFolder(outdir, false);
 exp.setMethodTimeout(60_000L);  // safety
 exp.setTotalTimeout(15 * 60_000L);  // safety
 exp.setCallback(new ProgressCallbackAdapter() {
     public void message(String msg) {
 boolean success = exp.process();
 System.out.println("Errors: " + exp.getErrors());


Inherited Fields
From class com.pnfsoftware.jeb.core.units.code.DecompilerExporter
Public Constructors
NativeDecompilerExporter(INativeDecompilerUnit<?> decompiler)
Public Methods
boolean process()
Decompile and export all meaningful elements.
Protected Methods
String generateClassFileName(String address)
String generateMethodFileName(String address)
Inherited Methods
From class com.pnfsoftware.jeb.core.units.code.DecompilerExporter
From class java.lang.Object

Public Constructors

public NativeDecompilerExporter (INativeDecompilerUnit<?> decompiler)

Public Methods

public boolean process ()

Decompile and export all meaningful elements. This is the recommended method to call. Top-level classes and their constituents will be exported; orphaned methods and other items will be exported as well.

If an output folder was specified, the resulting source files will be stored in a folder hierarchy that matches their namespace or package name.

  • true if no error occurred; false if some errors occurred

Protected Methods

protected String generateClassFileName (String address)

protected String generateMethodFileName (String address)