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

ClassAdapter

public class ClassAdapter extends Object implements ClassVisitor
An empty {@link ClassVisitor ClassVisitor} that delegates to another {@link ClassVisitor ClassVisitor}. This class can be used as a super class to quickly implement usefull class adapter classes, just by overriding the necessary methods.
author
Eric Bruneton

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

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

    this.cv = cv;
  
Methods Summary
public voidvisit(int version, int access, java.lang.String name, java.lang.String superName, java.lang.String[] interfaces, java.lang.String sourceFile)

    cv.visit(version, access, name, superName, interfaces, sourceFile);
  
public voidvisitAttribute(oracle.toplink.libraries.asm.Attribute attr)

    cv.visitAttribute(attr);
  
public voidvisitEnd()

    cv.visitEnd();
  
public voidvisitField(int access, java.lang.String name, java.lang.String desc, java.lang.Object value, oracle.toplink.libraries.asm.Attribute attrs)

    cv.visitField(access, name, desc, value, attrs);
  
public voidvisitInnerClass(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)

    cv.visitInnerClass(name, outerName, innerName, access);
  
public oracle.toplink.libraries.asm.CodeVisitorvisitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String[] exceptions, oracle.toplink.libraries.asm.Attribute attrs)

    return new CodeAdapter(cv.visitMethod(access, name, desc, exceptions, attrs));