1 54 package org.logicalcobwebs.cglib.reflect; 55 56 import java.lang.reflect.Member ; 57 58 abstract public class FastMember 59 { 60 protected FastClass fc; 61 protected Member member; 62 protected int index; 63 64 protected FastMember(FastClass fc, Member member, int index) { 65 this.fc = fc; 66 this.member = member; 67 this.index = index; 68 } 69 70 abstract public Class [] getParameterTypes(); 71 abstract public Class [] getExceptionTypes(); 72 73 public int getIndex() { 74 return index; 75 } 76 77 public String getName() { 78 return member.getName(); 79 } 80 81 public Class getDeclaringClass() { 82 return fc.getJavaClass(); 83 } 84 85 public int getModifiers() { 86 return member.getModifiers(); 87 } 88 89 public String toString() { 90 return member.toString(); 91 } 92 93 public int hashCode() { 94 return member.hashCode(); 95 } 96 97 public boolean equals(Object o) { 98 if (o == null || !(o instanceof FastMember)) { 99 return false; 100 } 101 return member.equals(((FastMember)o).member); 102 } 103 } 104 | Popular Tags |