Class DecompilerHelper

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

public class DecompilerHelper extends Object
Helper routines for decompiler units.
  • Constructor Details

    • DecompilerHelper

      public DecompilerHelper()
  • Method Details

    • typeName

      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
    • hasDecompilerFor

      public static boolean hasDecompilerFor(ICodeUnit unit)
      Determine whether or not there is (or could be) an associated decompiler for the provided code unit.
      Parameters:
      unit -
      Returns:
    • getAvailableDecompilers

      public static List<IUnitIdentifier> getAvailableDecompilers(IEnginesContext engctx)
      Parameters:
      engctx -
      Returns:
    • isDexDecompilerAvailable

      public static boolean isDexDecompilerAvailable(IEnginesContext engctx)
      Parameters:
      engctx -
      Returns:
    • getAvailableDecompilerNames

      public static List<String> getAvailableDecompilerNames(IEnginesContext engctx)
      Parameters:
      engctx -
      Returns:
    • getDecompiler

      public static IDecompilerUnit getDecompiler(IUnit unit)
      Retrieve or create a decompiler for the current unit.
      Parameters:
      unit -
      Returns:
      the decompiler unit or null
    • getDecompiler

      public static IDecompilerUnit getDecompiler(IUnit unit, boolean createIfNotExist)
      Retrieve a decompiler for the current unit.
      Parameters:
      unit - a code unit
      createIfNotExist -
      Returns:
      the decompiler unit or null
    • getRelatedDecompiler

      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
    • getRelatedCodeUnit

      public static ICodeUnit getRelatedCodeUnit(IUnit unit)
      Retrieve the existing code unit for the provided decompiler or source unit.
      Parameters:
      unit -
      Returns:
    • getBuildTypesWithDecompilationSupport

      public static List<String> getBuildTypesWithDecompilationSupport(String codeUnitType)
    • parsePluginNamesListProperty

      public static Collection<String> parsePluginNamesListProperty(String propertyValue)
    • createPluginNamesListProperty

      public static String createPluginNamesListProperty(Collection<String> pluginNames)