public class HexCodeFileDisassemblerProvider extends Object implements DisassemblerProvider
HexCodeFile based implementation of DisassemblerProvider.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
HexCodeFileDisassemblerProvider.HexCodeFileDisTool
Interface to the tool for disassembling an
embedded
HexCodeFile. |
| Constructor and Description |
|---|
HexCodeFileDisassemblerProvider() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addExceptionHandlersComment(CompilationResult compResult,
HexCodeFile hcf) |
private static void |
addOperandComment(HexCodeFile hcf,
int pos,
String comment) |
private static String |
disassemble(CodeCacheProvider codeCache,
CompilationResult compResult,
InstalledCode installedCode) |
String |
disassembleCompiledCode(CodeCacheProvider codeCache,
CompilationResult compResult)
Gets a textual disassembly of a given compilation result.
|
String |
disassembleInstalledCode(CodeCacheProvider codeCache,
CompilationResult compResult,
InstalledCode installedCode)
Gets a textual disassembly of a given installed code.
|
String |
getName()
Gets the name denoting the format of the disassmembly return by this object.
|
public HexCodeFileDisassemblerProvider()
public String disassembleCompiledCode(CodeCacheProvider codeCache, CompilationResult compResult)
DisassemblerProviderdisassembleCompiledCode in interface DisassemblerProvidercodeCache - the object used for code code
installationcompResult - a compilation resultcompResult or null it
could not be disassembledpublic String getName()
DisassemblerProvidergetName in interface DisassemblerProviderpublic String disassembleInstalledCode(CodeCacheProvider codeCache, CompilationResult compResult, InstalledCode installedCode)
DisassemblerProviderdisassembleInstalledCode in interface DisassemblerProvidercodeCache - the object used for code code
installationcompResult - a compiled code that was installed to produce installedCode. This
will be null if not available.code or null if
code is invalid or it could not be
disassembled for some other reasonprivate static String disassemble(CodeCacheProvider codeCache, CompilationResult compResult, InstalledCode installedCode)
private static void addExceptionHandlersComment(CompilationResult compResult, HexCodeFile hcf)
private static void addOperandComment(HexCodeFile hcf, int pos, String comment)