|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cojen.classfile.CodeDisassembler
public class CodeDisassembler
Disassembles a method into a CodeAssembler, which acts as a visitor.
Constructor Summary | |
---|---|
CodeDisassembler(MethodInfo method)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodeDisassembler(MethodInfo method) throws IllegalArgumentException
IllegalArgumentException
- if method has no codeMethod Detail |
---|
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |