org.objectweb.asm
public class ClassAdapter extends Object implements ClassVisitor
ClassVisitor that delegates to another ClassVisitor. This class can be used as a super class to
quickly implement usefull class adapter classes, just by overriding the
necessary methods.
| Field Summary | |
|---|---|
| protected ClassVisitor | cv
The ClassVisitor to which this adapter delegates
calls. |
| Constructor Summary | |
|---|---|
| ClassAdapter(ClassVisitor cv)
Constructs a new ClassAdapter object.
| |
| Method Summary | |
|---|---|
| void | visit(int version, int access, String name, String superName, String[] interfaces, String sourceFile) |
| void | visitAttribute(Attribute attr) |
| void | visitEnd() |
| void | visitField(int access, String name, String desc, Object value, Attribute attrs) |
| void | visitInnerClass(String name, String outerName, String innerName, int access) |
| CodeVisitor | visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) |
ClassVisitor to which this adapter delegates
calls. ClassAdapter object.
Parameters: cv the class visitor to which this adapter must delegate calls.