1 4 package com.tc.object.bytecode; 5 6 7 import com.tc.asm.ClassVisitor; 8 import com.tc.asm.MethodVisitor; 9 import com.tc.asm.Opcodes; 10 import com.tc.object.logging.InstrumentationLogger; 11 12 public abstract class AbstractMethodAdapter implements MethodAdapter, Opcodes { 13 14 protected ManagerHelper managerHelper; 15 protected int access; 16 protected String methodName; 17 protected String originalMethodName; 18 protected String signature; 19 protected String description; 20 protected String [] exceptions; 21 protected InstrumentationLogger instrumentationLogger; 22 protected String ownerDots; 23 24 public AbstractMethodAdapter() { 25 super(); 26 } 27 28 protected MethodVisitor visitOriginal(ClassVisitor classVisitor) { 29 return classVisitor.visitMethod(access, methodName, description, signature, exceptions); 30 } 31 32 public abstract MethodVisitor adapt(ClassVisitor classVisitor); 33 34 public abstract boolean doesOriginalNeedAdapting(); 35 36 public void initialize(ManagerHelper mgrHelper, int acc, String own, String method, String origMethodName, 37 String desc, String sig, String [] ex, InstrumentationLogger instLogger) { 38 this.managerHelper = mgrHelper; 39 this.access = acc; 40 this.ownerDots = own; 41 this.methodName = method; 42 this.originalMethodName = origMethodName; 43 this.signature = sig; 44 this.description = desc; 45 this.exceptions = ex; 46 this.instrumentationLogger = instLogger; 47 } 48 49 } 50 | Popular Tags |