1 30 package org.objectweb.asm; 31 32 40 public class MethodAdapter implements MethodVisitor { 41 42 45 protected MethodVisitor mv; 46 47 52 public MethodAdapter(final MethodVisitor mv) { 53 this.mv = mv; 54 } 55 56 public AnnotationVisitor visitAnnotationDefault() { 57 return mv.visitAnnotationDefault(); 58 } 59 60 public AnnotationVisitor visitAnnotation( 61 final String desc, 62 final boolean visible) 63 { 64 return mv.visitAnnotation(desc, visible); 65 } 66 67 public AnnotationVisitor visitParameterAnnotation( 68 final int parameter, 69 final String desc, 70 final boolean visible) 71 { 72 return mv.visitParameterAnnotation(parameter, desc, visible); 73 } 74 75 public void visitAttribute(final Attribute attr) { 76 mv.visitAttribute(attr); 77 } 78 79 public void visitCode() { 80 mv.visitCode(); 81 } 82 83 public void visitInsn(final int opcode) { 84 mv.visitInsn(opcode); 85 } 86 87 public void visitIntInsn(final int opcode, final int operand) { 88 mv.visitIntInsn(opcode, operand); 89 } 90 91 public void visitVarInsn(final int opcode, final int var) { 92 mv.visitVarInsn(opcode, var); 93 } 94 95 public void visitTypeInsn(final int opcode, final String desc) { 96 mv.visitTypeInsn(opcode, desc); 97 } 98 99 public void visitFieldInsn( 100 final int opcode, 101 final String owner, 102 final String name, 103 final String desc) 104 { 105 mv.visitFieldInsn(opcode, owner, name, desc); 106 } 107 108 public void visitMethodInsn( 109 final int opcode, 110 final String owner, 111 final String name, 112 final String desc) 113 { 114 mv.visitMethodInsn(opcode, owner, name, desc); 115 } 116 117 public void visitJumpInsn(final int opcode, final Label label) { 118 mv.visitJumpInsn(opcode, label); 119 } 120 121 public void visitLabel(final Label label) { 122 mv.visitLabel(label); 123 } 124 125 public void visitLdcInsn(final Object cst) { 126 mv.visitLdcInsn(cst); 127 } 128 129 public void visitIincInsn(final int var, final int increment) { 130 mv.visitIincInsn(var, increment); 131 } 132 133 public void visitTableSwitchInsn( 134 final int min, 135 final int max, 136 final Label dflt, 137 final Label labels[]) 138 { 139 mv.visitTableSwitchInsn(min, max, dflt, labels); 140 } 141 142 public void visitLookupSwitchInsn( 143 final Label dflt, 144 final int keys[], 145 final Label labels[]) 146 { 147 mv.visitLookupSwitchInsn(dflt, keys, labels); 148 } 149 150 public void visitMultiANewArrayInsn(final String desc, final int dims) { 151 mv.visitMultiANewArrayInsn(desc, dims); 152 } 153 154 public void visitTryCatchBlock( 155 final Label start, 156 final Label end, 157 final Label handler, 158 final String type) 159 { 160 mv.visitTryCatchBlock(start, end, handler, type); 161 } 162 163 public void visitLocalVariable( 164 final String name, 165 final String desc, 166 final String signature, 167 final Label start, 168 final Label end, 169 final int index) 170 { 171 mv.visitLocalVariable(name, desc, signature, start, end, index); 172 } 173 174 public void visitLineNumber(final int line, final Label start) { 175 mv.visitLineNumber(line, start); 176 } 177 178 public void visitMaxs(final int maxStack, final int maxLocals) { 179 mv.visitMaxs(maxStack, maxLocals); 180 } 181 182 public void visitEnd() { 183 mv.visitEnd(); 184 } 185 } 186 | Popular Tags |