1 22 package org.jboss.aop.joinpoint; 23 24 import java.lang.reflect.Method ; 25 26 32 public class MethodJoinpoint implements Joinpoint 33 { 34 private final Method method; 35 36 public MethodJoinpoint(Method method) 37 { 38 this.method = method; 39 } 40 41 public boolean equals(Object o) 42 { 43 if (o == null) return false; 44 if (o == this) return true; 45 if (!(o instanceof MethodJoinpoint)) return false; 46 MethodJoinpoint jp = (MethodJoinpoint)o; 47 return method.equals(jp.method); 48 } 49 50 public int hashCode() 51 { 52 return method.hashCode(); 53 } 54 55 public Method getMethod() 56 { 57 return method; 58 } 59 60 public String toString() 61 { 62 return method.toString(); 63 } 64 } 65 | Popular Tags |