1 package ch.ethz.prose.jvmai.jikesrvm.stub_weaver; 2 3 import com.ibm.JikesRVM.VM_JVMAI; 4 import java.lang.reflect.Method ; 5 import ch.ethz.jvmai.*; 6 7 16 public class CodeJoinPointImpl implements CodeJoinPoint, JoinPointKinds { 17 18 21 public Object aopTag; 22 23 26 public int methodId = -1; 27 28 31 public Thread thread; 32 33 36 public int fp = -1; 37 38 public Object getAopTag() { 39 return aopTag; 40 } 41 42 public int getByteCodeIndex() { 43 throw new RuntimeException ("TODO CodeJoinPointImpl.getByteCodeIndex"); 44 } 45 46 public CodeJoinPoint getEnclosingJoinPoint() { 47 return VM_JVMAI.getInstance().getEnclosingJoinPoint(this); 48 } 49 50 public Method getMethod() { 51 return VM_JVMAI.getInstance().getMethod(this); 52 } 53 54 public Object [] getArgs() { 55 return VM_JVMAI.getInstance().getArgs(this); 56 } 57 58 public String getKind() { 59 return KIND_CODE_JP; 60 } 61 62 public int getMask() { 63 return MASK_CODE_JP; 64 } 65 66 public Signature getSignature() { 67 throw new RuntimeException ("TODO CodeJoinPointImpl.getSignature"); 68 } 69 70 public JoinPointStaticPart getStaticPart() { 71 throw new RuntimeException ("TODO CodeJoinPointImpl.getStaticPart"); 72 } 73 74 public Object getTarget() { 75 return VM_JVMAI.getInstance().getTarget(this); 76 } 77 78 public Object getThis() { 79 return VM_JVMAI.getInstance().getTarget(this); 80 } 81 82 public String toLongString() { 83 return toString(); 84 } 85 86 public String toShortString() { 87 return toString(); 88 } 89 90 } 91 | Popular Tags |