Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 22 package org.jboss.aop.joinpoint; 23 24 import java.lang.reflect.Method ; 25 26 32 public class MethodCalledByMethodJoinpoint implements Joinpoint 33 { 34 private final Method calling; 35 private final Method called; 36 37 public MethodCalledByMethodJoinpoint(Method calling, Method called) 38 { 39 this.calling = calling; 40 this.called = called; 41 } 42 43 public boolean equals(Object o) 44 { 45 if (o == null) return false; 46 if (o == this) return true; 47 if (!(o instanceof MethodCalledByMethodJoinpoint)) return false; 48 MethodCalledByMethodJoinpoint jp = (MethodCalledByMethodJoinpoint)o; 49 if (!jp.calling.equals(this.calling)) return false; 50 if (!jp.called.equals(this.called)) return false; 51 return true; 52 } 53 54 public int hashCode() 55 { 56 return calling.hashCode() + called.hashCode(); 57 } 58 59 public Method getCalling() 60 { 61 return calling; 62 } 63 64 public Method getCalled() 65 { 66 return called; 67 } 68 69 public String toString() 70 { 71 return called + " called by " + calling; 72 } 73 } 74
| Popular Tags
|