1 22 package org.jboss.aop.joinpoint; 23 24 import java.lang.reflect.Field ; 25 26 32 public class FieldJoinpoint implements Joinpoint 33 { 34 private final Field field; 35 36 public FieldJoinpoint(Field field) 37 { 38 this.field = field; 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 FieldJoinpoint)) return false; 46 FieldJoinpoint jp = (FieldJoinpoint)o; 47 return field.equals(jp.field); 48 } 49 50 public int hashCode() 51 { 52 return field.hashCode(); 53 } 54 55 public Field getField() 56 { 57 return field; 58 } 59 60 public String toString() 61 { 62 return field.toString(); 63 } 64 } 65 | Popular Tags |