public class CodeDisassembler extends Object
Constructor and Description |
---|
CodeDisassembler(MethodInfo method) |
Modifier and Type | Method and Description |
---|---|
void |
disassemble(CodeAssembler assembler)
Disassemble the MethodInfo into the given assembler.
|
void |
disassemble(CodeAssembler assembler,
LocalVariable[] params,
Location returnLocation)
Disassemble the MethodInfo into the given assembler.
|
protected void |
error(byte opcode,
String message)
Invoked on disassembly errors.
|
public CodeDisassembler(MethodInfo method) throws IllegalArgumentException
IllegalArgumentException
- if method has no codepublic void disassemble(CodeAssembler assembler)
CodeAssemblerPrinter
public void disassemble(CodeAssembler assembler, LocalVariable[] params, Location returnLocation)
params
- if not null, override the local variables which hold parameter valuesreturnLocation
- if not null, disassemble will branch to this location upon seeing
a return, leaving any arguments on the stackCodeAssemblerPrinter
protected void error(byte opcode, String message)
Copyright © 2004-2015 Cojen. All Rights Reserved.