ClassAdapterpublic class ClassAdapter extends Object implements ClassVisitorAn 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. |
Fields Summary |
---|
protected ClassVisitor | cvThe {@link ClassVisitor ClassVisitor} to which this adapter delegates
calls. |
Constructors Summary |
---|
public ClassAdapter(ClassVisitor cv)Constructs a new {@link ClassAdapter ClassAdapter} object.
this.cv = cv;
|
Methods Summary |
---|
public void | visit(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 void | visitAttribute(oracle.toplink.libraries.asm.Attribute attr)
cv.visitAttribute(attr);
| public void | visitEnd()
cv.visitEnd();
| public void | visitField(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 void | visitInnerClass(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.CodeVisitor | visitMethod(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));
|
|