FileDocCategorySizeDatePackage
CodeAdapter.javaAPI DocGlassfish v2 API4717Thu Mar 02 11:51:12 GMT 2006oracle.toplink.libraries.asm

CodeAdapter

public class CodeAdapter extends Object implements CodeVisitor
An 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.
author
Eric Bruneton

Fields Summary
protected CodeVisitor
cv
The {@link CodeVisitor CodeVisitor} to which this adapter delegates calls.
Constructors Summary
public CodeAdapter(CodeVisitor cv)
Constructs a new {@link CodeAdapter CodeAdapter} object.

param
cv the code visitor to which this adapter must delegate calls.

    this.cv = cv;
  
Methods Summary
public voidvisitAttribute(oracle.toplink.libraries.asm.Attribute attr)

    cv.visitAttribute(attr);
  
public voidvisitFieldInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)

    cv.visitFieldInsn(opcode, owner, name, desc);
  
public voidvisitIincInsn(int var, int increment)

    cv.visitIincInsn(var, increment);
  
public voidvisitInsn(int opcode)

    cv.visitInsn(opcode);
  
public voidvisitIntInsn(int opcode, int operand)

    cv.visitIntInsn(opcode, operand);
  
public voidvisitJumpInsn(int opcode, oracle.toplink.libraries.asm.Label label)

    cv.visitJumpInsn(opcode, label);
  
public voidvisitLabel(oracle.toplink.libraries.asm.Label label)

    cv.visitLabel(label);
  
public voidvisitLdcInsn(java.lang.Object cst)

    cv.visitLdcInsn(cst);
  
public voidvisitLineNumber(int line, oracle.toplink.libraries.asm.Label start)

    cv.visitLineNumber(line, start);
  
public voidvisitLocalVariable(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 voidvisitLookupSwitchInsn(oracle.toplink.libraries.asm.Label dflt, int[] keys, oracle.toplink.libraries.asm.Label[] labels)

    cv.visitLookupSwitchInsn(dflt, keys, labels);
  
public voidvisitMaxs(int maxStack, int maxLocals)

    cv.visitMaxs(maxStack, maxLocals);
  
public voidvisitMethodInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)

    cv.visitMethodInsn(opcode, owner, name, desc);
  
public voidvisitMultiANewArrayInsn(java.lang.String desc, int dims)

    cv.visitMultiANewArrayInsn(desc, dims);
  
public voidvisitTableSwitchInsn(int min, int max, oracle.toplink.libraries.asm.Label dflt, oracle.toplink.libraries.asm.Label[] labels)

    cv.visitTableSwitchInsn(min, max, dflt, labels);
  
public voidvisitTryCatchBlock(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 voidvisitTypeInsn(int opcode, java.lang.String desc)

    cv.visitTypeInsn(opcode, desc);
  
public voidvisitVarInsn(int opcode, int var)

    cv.visitVarInsn(opcode, var);