Package com.ibm.wala.shrike.shrikeBT
Class Disassembler
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeBT.Disassembler
-
public class Disassembler extends java.lang.ObjectThis 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
Constructors Constructor Description Disassembler(IInstruction[] instructions, ExceptionHandler[][] handlers, int[] instructionsToBytecodes)Create a disassembler for a method.Disassembler(MethodData data)Create a disassembler for a method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisassembleTo(java.io.Writer w)Write the disassembly to a stream.voiddisassembleTo(java.lang.String prefix, java.io.Writer w)Write the disassembly to a stream.
-
-
-
Constructor Detail
-
Disassembler
public Disassembler(IInstruction[] instructions, ExceptionHandler[][] handlers, int[] instructionsToBytecodes)
Create a disassembler for a method.
-
Disassembler
public Disassembler(MethodData data) throws java.lang.NullPointerException
Create a disassembler for a method.- Throws:
java.lang.NullPointerException- if data is null
-
-
Method Detail
-
disassembleTo
public void disassembleTo(java.lang.String prefix, java.io.Writer w) throws java.io.IOExceptionWrite the disassembly to a stream. Each line is prefixed with 'prefix'.- Throws:
java.io.IOException
-
disassembleTo
public void disassembleTo(java.io.Writer w) throws java.io.IOExceptionWrite the disassembly to a stream.- Throws:
java.io.IOException
-
-