1 19 20 25 26 package soot.jimple.toolkits.annotation.arraycheck; 27 28 import soot.*; 29 import soot.jimple.*; 30 31 class MethodReturn 32 { 33 private SootMethod m; 34 public MethodReturn(SootMethod m) 35 { 36 this.m = m; 37 } 38 39 public SootMethod getMethod() 40 { 41 return m; 42 } 43 44 public Type getType() 45 { 46 return m.getReturnType(); 47 } 48 49 public int hashCode() 50 { 51 return m.hashCode()+m.getParameterCount(); 52 } 53 54 public boolean equals(Object other) 55 { 56 if (other instanceof MethodReturn) 57 { 58 return m.equals( ((MethodReturn)other).getMethod() ); 59 } 60 61 return false; 62 } 63 64 public String toString() 65 { 66 return "["+m.getSignature()+" : R]"; 67 } 68 } 69 70 | Popular Tags |