public class

DecompilerHelper

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.util.DecompilerHelper

Class Overview

TODO: make it a generic Unit helper (rename to "Units", move to core, add statics)

Summary

Public Constructors
DecompilerHelper()
Public Methods
static List<String> getAvailableDecompilerNames(IEnginesContext engctx)
static List<IUnitIdentifier> getAvailableDecompilers(IEnginesContext engctx)
static IDecompilerUnit getDecompiler(IUnit unit)
Retrieve (get or create) a decompiler for the current unit.
static ICodeUnit getRelatedCodeUnit(IUnit unit)
Retrieve the existing code unit for the provided decompiler or source unit.
static IDecompilerUnit getRelatedDecompiler(IUnit unit)
Retrieve an existing decompiler for the current code unit or the decompiler that produced the provided source unit.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DecompilerHelper ()

Public Methods

public static List<String> getAvailableDecompilerNames (IEnginesContext engctx)

public static List<IUnitIdentifier> getAvailableDecompilers (IEnginesContext engctx)

public static IDecompilerUnit getDecompiler (IUnit unit)

Retrieve (get or create) a decompiler for the current unit.

Parameters
unit a code unit
Returns
  • the decompiler unit or null

public static ICodeUnit getRelatedCodeUnit (IUnit unit)

Retrieve the existing code unit for the provided decompiler or source unit.

public static IDecompilerUnit getRelatedDecompiler (IUnit unit)

Retrieve an existing decompiler for the current code unit or the decompiler that produced the provided source unit. No decompiler is created.

Parameters
unit a code unit or a source unit
Returns
  • the decompiler unit or null