org.objectweb.asm.tree
public class TreeCodeAdapter extends CodeAdapter
CodeAdapter that constructs a tree representation of
the methods it vists. Each visitXXX method of this class
constructs an XXXNode and adds it to the methodNode node.
| Field Summary | |
|---|---|
| MethodNode | methodNode
A tree representation of the method that is being visited by this visitor. |
| Constructor Summary | |
|---|---|
| TreeCodeAdapter(MethodNode methodNode)
Constructs a new TreeCodeAdapter object.
| |
| Method Summary | |
|---|---|
| void | visitAttribute(Attribute attr) |
| void | visitFieldInsn(int opcode, String owner, String name, String desc) |
| void | visitIincInsn(int var, int increment) |
| void | visitInsn(int opcode) |
| void | visitIntInsn(int opcode, int operand) |
| void | visitJumpInsn(int opcode, Label label) |
| void | visitLabel(Label label) |
| void | visitLdcInsn(Object cst) |
| void | visitLineNumber(int line, Label start) |
| void | visitLocalVariable(String name, String desc, Label start, Label end, int index) |
| void | visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) |
| void | visitMaxs(int maxStack, int maxLocals) |
| void | visitMethodInsn(int opcode, String owner, String name, String desc) |
| void | visitMultiANewArrayInsn(String desc, int dims) |
| void | visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) |
| void | visitTryCatchBlock(Label start, Label end, Label handler, String type) |
| void | visitTypeInsn(int opcode, String desc) |
| void | visitVarInsn(int opcode, int var) |
TreeCodeAdapter object.
Parameters: methodNode the method node to be used to store the tree representation constructed by this code visitor.