Class Disassembler
java.lang.Object
com.ibm.wala.shrike.shrikeBT.Disassembler
This is a very simple component to disassemble a ShrikeBT method. The disassembly is just the
list of ShrikeBT instructions, annotated with exception handler blocks and the mapping back to
the original bytecodes.
-
Constructor Summary
ConstructorDescriptionDisassembler
(IInstruction[] instructions, ExceptionHandler[][] handlers, int[] instructionsToBytecodes) Create a disassembler for a method.Disassembler
(MethodData data) Create a disassembler for a method. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Write the disassembly to a stream.void
disassembleTo
(String prefix, Writer w) Write the disassembly to a stream.
-
Constructor Details
-
Disassembler
public Disassembler(IInstruction[] instructions, ExceptionHandler[][] handlers, int[] instructionsToBytecodes) Create a disassembler for a method. -
Disassembler
Create a disassembler for a method.- Throws:
NullPointerException
- if data is null
-
-
Method Details
-
disassembleTo
Write the disassembly to a stream. Each line is prefixed with 'prefix'.- Throws:
IOException
-
disassembleTo
Write the disassembly to a stream.- Throws:
IOException
-