CodeAdapterpublic class CodeAdapter extends Object implements CodeVisitorAn empty {@link CodeVisitor CodeVisitor} that delegates to another {@link
CodeVisitor CodeVisitor}. This class can be used as a super class to quickly
implement usefull code adapter classes, just by overriding the necessary
methods. |
Fields Summary |
---|
protected CodeVisitor | cvThe {@link CodeVisitor CodeVisitor} to which this adapter delegates calls. |
Constructors Summary |
---|
public CodeAdapter(CodeVisitor cv)Constructs a new {@link CodeAdapter CodeAdapter} object.
this.cv = cv;
|
Methods Summary |
---|
public void | visitAttribute(oracle.toplink.libraries.asm.Attribute attr)
cv.visitAttribute(attr);
| public void | visitFieldInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
cv.visitFieldInsn(opcode, owner, name, desc);
| public void | visitIincInsn(int var, int increment)
cv.visitIincInsn(var, increment);
| public void | visitInsn(int opcode)
cv.visitInsn(opcode);
| public void | visitIntInsn(int opcode, int operand)
cv.visitIntInsn(opcode, operand);
| public void | visitJumpInsn(int opcode, oracle.toplink.libraries.asm.Label label)
cv.visitJumpInsn(opcode, label);
| public void | visitLabel(oracle.toplink.libraries.asm.Label label)
cv.visitLabel(label);
| public void | visitLdcInsn(java.lang.Object cst)
cv.visitLdcInsn(cst);
| public void | visitLineNumber(int line, oracle.toplink.libraries.asm.Label start)
cv.visitLineNumber(line, start);
| public void | visitLocalVariable(java.lang.String name, java.lang.String desc, oracle.toplink.libraries.asm.Label start, oracle.toplink.libraries.asm.Label end, int index)
cv.visitLocalVariable(name, desc, start, end, index);
| public void | visitLookupSwitchInsn(oracle.toplink.libraries.asm.Label dflt, int[] keys, oracle.toplink.libraries.asm.Label[] labels)
cv.visitLookupSwitchInsn(dflt, keys, labels);
| public void | visitMaxs(int maxStack, int maxLocals)
cv.visitMaxs(maxStack, maxLocals);
| public void | visitMethodInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
cv.visitMethodInsn(opcode, owner, name, desc);
| public void | visitMultiANewArrayInsn(java.lang.String desc, int dims)
cv.visitMultiANewArrayInsn(desc, dims);
| public void | visitTableSwitchInsn(int min, int max, oracle.toplink.libraries.asm.Label dflt, oracle.toplink.libraries.asm.Label[] labels)
cv.visitTableSwitchInsn(min, max, dflt, labels);
| public void | visitTryCatchBlock(oracle.toplink.libraries.asm.Label start, oracle.toplink.libraries.asm.Label end, oracle.toplink.libraries.asm.Label handler, java.lang.String type)
cv.visitTryCatchBlock(start, end, handler, type);
| public void | visitTypeInsn(int opcode, java.lang.String desc)
cv.visitTypeInsn(opcode, desc);
| public void | visitVarInsn(int opcode, int var)
cv.visitVarInsn(opcode, var);
|
|