Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.asm.MethodAdapter
MethodVisitor
that delegates to another
MethodVisitor
. This class can be used as a super class to quickly
implement usefull method adapter classes, just by overriding the necessary
methods.
Field Summary | |
protected MethodVisitor |
|
Constructor Summary | |
|
Method Summary | |
AnnotationVisitor |
|
AnnotationVisitor | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
AnnotationVisitor |
|
void |
|
void |
|
void |
|
void |
|
public MethodAdapter(MethodVisitor mv)
Constructs a newMethodAdapter
object.
- Parameters:
mv
- the code visitor to which this adapter must delegate calls.
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
- Specified by:
- visitAnnotation in interface MethodVisitor
public AnnotationVisitor visitAnnotationDefault()
- Specified by:
- visitAnnotationDefault in interface MethodVisitor
public void visitAttribute(Attribute attr)
- Specified by:
- visitAttribute in interface MethodVisitor
public void visitFieldInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitFieldInsn in interface MethodVisitor
public void visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack)
- Specified by:
- visitFrame in interface MethodVisitor
public void visitIincInsn(int var, int increment)
- Specified by:
- visitIincInsn in interface MethodVisitor
public void visitIntInsn(int opcode, int operand)
- Specified by:
- visitIntInsn in interface MethodVisitor
public void visitJumpInsn(int opcode, Label label)
- Specified by:
- visitJumpInsn in interface MethodVisitor
public void visitLdcInsn(Object cst)
- Specified by:
- visitLdcInsn in interface MethodVisitor
public void visitLineNumber(int line, Label start)
- Specified by:
- visitLineNumber in interface MethodVisitor
public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index)
- Specified by:
- visitLocalVariable in interface MethodVisitor
public void visitLookupSwitchInsn(Label dflt, keys[] , labels[] )
- Specified by:
- visitLookupSwitchInsn in interface MethodVisitor
public void visitMaxs(int maxStack, int maxLocals)
- Specified by:
- visitMaxs in interface MethodVisitor
public void visitMethodInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitMethodInsn in interface MethodVisitor
public void visitMultiANewArrayInsn(String desc, int dims)
- Specified by:
- visitMultiANewArrayInsn in interface MethodVisitor
public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible)
- Specified by:
- visitParameterAnnotation in interface MethodVisitor
public void visitTableSwitchInsn(int min, int max, Label dflt, labels[] )
- Specified by:
- visitTableSwitchInsn in interface MethodVisitor
public void visitTryCatchBlock(Label start, Label end, Label handler, String type)
- Specified by:
- visitTryCatchBlock in interface MethodVisitor
public void visitTypeInsn(int opcode, String type)
- Specified by:
- visitTypeInsn in interface MethodVisitor
public void visitVarInsn(int opcode, int var)
- Specified by:
- visitVarInsn in interface MethodVisitor