public class

DecompilerHelper

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

Class Overview

Helper routines for decompiler units.

Summary

Public Constructors
DecompilerHelper()
Public Methods
static String createPluginNamesListProperty(Collection<String> pluginNames)
static List<String> getAvailableDecompilerNames(IEnginesContext engctx)
static List<IUnitIdentifier> getAvailableDecompilers(IEnginesContext engctx)
static List<String> getBuildTypesWithDecompilationSupport(String codeUnitType)
static IDecompilerUnit getDecompiler(IUnit unit, boolean createIfNotExist)
Retrieve a decompiler for the current unit.
static IDecompilerUnit getDecompiler(IUnit unit)
Retrieve 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.
static boolean hasDecompilerFor(ICodeUnit unit)
Determine whether or not there is (or could be) an associated decompiler for the provided code unit.
static boolean isDexDecompilerAvailable(IEnginesContext engctx)
static Collection<String> parsePluginNamesListProperty(String propertyValue)
static String typeName(String codeUnitType)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DecompilerHelper ()

Public Methods

public static String createPluginNamesListProperty (Collection<String> pluginNames)

public static List<String> getAvailableDecompilerNames (IEnginesContext engctx)

public static List<IUnitIdentifier> getAvailableDecompilers (IEnginesContext engctx)

public static List<String> getBuildTypesWithDecompilationSupport (String codeUnitType)

public static IDecompilerUnit getDecompiler (IUnit unit, boolean createIfNotExist)

Retrieve a decompiler for the current unit.

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

public static IDecompilerUnit getDecompiler (IUnit unit)

Retrieve or create a decompiler for the current 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

public static boolean hasDecompilerFor (ICodeUnit unit)

Determine whether or not there is (or could be) an associated decompiler for the provided code unit.

public static boolean isDexDecompilerAvailable (IEnginesContext engctx)

public static Collection<String> parsePluginNamesListProperty (String propertyValue)

public static String typeName (String codeUnitType)

Parameters
codeUnitType unit type of a code unit
Returns
  • the unit type of a debugger plugin for the provided code unit