public class BytecodeDisassembler extends Object
javap
-like disassembly of bytecode.Modifier and Type | Field and Description |
---|---|
private boolean |
multiline
Specifies if the disassembly for a single instruction can span multiple lines.
|
Constructor and Description |
---|
BytecodeDisassembler() |
BytecodeDisassembler(boolean multiline) |
Modifier and Type | Method and Description |
---|---|
String |
disassemble(ResolvedJavaMethod method)
Disassembles the bytecode of a given method in a
javap -like format. |
String |
disassemble(ResolvedJavaMethod method,
int startBci,
int endBci)
Disassembles the bytecode of a given method in a
javap -like format. |
private final boolean multiline
public BytecodeDisassembler(boolean multiline)
public BytecodeDisassembler()
public String disassemble(ResolvedJavaMethod method)
javap
-like format.null
if method
has no bytecode (e.g., it is native or abstract)public String disassemble(ResolvedJavaMethod method, int startBci, int endBci)
javap
-like format.null
if method
has no bytecode (e.g., it is native or abstract)