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 String
createPluginNamesListProperty
(Collection<String> pluginNames) static List<IUnitIdentifier>
getBuildTypesWithDecompilationSupport
(String codeUnitType) static IDecompilerUnit
getDecompiler
(IUnit unit) Retrieve or create a decompiler for the current unit.static IDecompilerUnit
getDecompiler
(IUnit unit, boolean createIfNotExist) Retrieve 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
static 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 unit
or 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
-