1 27 package ch.ethz.inf.iks.jvmai.jvmdi; 28 29 import java.lang.*; 30 import java.lang.reflect.Method ; 31 32 41 class JoinPointLocation 42 { 43 44 protected Method executingMethod; 45 protected int executingBci; 46 47 public JoinPointLocation() 48 { 49 executingMethod = null; 50 executingBci = -1; 51 } 52 53 54 public boolean equals(Object other) 55 { 56 JoinPointLocation otherLocation = null; 57 if (other instanceof JoinPointLocation) 58 { 59 otherLocation = (JoinPointLocation)other; 60 return 61 executingMethod.equals(otherLocation.executingMethod) && 62 executingBci == otherLocation.executingBci; 63 } 64 else 65 return false; 66 } 67 68 public int hashCode() 69 { 70 return executingMethod.hashCode() + executingBci; 71 } 72 } 73 74 75 | Popular Tags |