Package com.pnfsoftware.jeb.core.util
Class DecompilerHelper
java.lang.Object
com.pnfsoftware.jeb.core.util.DecompilerHelper
Helper routines for
decompiler units.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreatePluginNamesListProperty(Collection<String> pluginNames) static List<IUnitIdentifier>getBuildTypesWithDecompilationSupport(String codeUnitType) static IDecompilerUnitgetDecompiler(IUnit unit) Retrieve or create a decompiler for the current unit.static IDecompilerUnitgetDecompiler(IUnit unit, boolean createIfNotExist) Retrieve a decompiler for the current unit.static ICodeUnitgetRelatedCodeUnit(IUnit unit) Retrieve the existing code unit for the provided decompiler or source unit.static IDecompilerUnitgetRelatedDecompiler(IUnit unit) Retrieve an existing decompiler for the current code unit or the decompiler that produced the provided source unit.static booleanhasDecompilerFor(ICodeUnit unit) Determine whether or not there is (or could be) an associated decompiler for the provided code unit.static booleanstatic Collection<String>parsePluginNamesListProperty(String propertyValue) static String
-
Constructor Details
-
DecompilerHelper
public DecompilerHelper()
-
-
Method Details
-
typeName
- Parameters:
codeUnitType- unit type of a code unit- Returns:
- the unit type of a debugger plugin for the provided code unit
-
hasDecompilerFor
Determine whether or not there is (or could be) an associated decompiler for the provided code unit.- Parameters:
unit-- Returns:
-
getAvailableDecompilers
- Parameters:
engctx-- Returns:
-
isDexDecompilerAvailable
- Parameters:
engctx-- Returns:
-
getAvailableDecompilerNames
- Parameters:
engctx-- Returns:
-
getDecompiler
Retrieve or create a decompiler for the current unit.- Parameters:
unit-- Returns:
- the decompiler unit or null
-
getDecompiler
Retrieve a decompiler for the current unit.- Parameters:
unit- a code unitcreateIfNotExist-- Returns:
- the decompiler unit or null
-
getRelatedDecompiler
Retrieve an existing decompiler for the current code unit or the decompiler that produced the provided source unit. No decompiler is created.- Parameters:
unit- acode unitor asource unit- Returns:
- the decompiler unit or null
-
getRelatedCodeUnit
Retrieve the existing code unit for the provided decompiler or source unit.- Parameters:
unit-- Returns:
-
getBuildTypesWithDecompilationSupport
-
parsePluginNamesListProperty
-
createPluginNamesListProperty
-