1 16 package net.sf.cglib.core; 17 18 import org.objectweb.asm.Attribute; 19 import org.objectweb.asm.Type; 20 21 abstract public class MethodInfo { 22 23 protected MethodInfo() { 24 } 25 26 abstract public ClassInfo getClassInfo(); 27 abstract public int getModifiers(); 28 abstract public Signature getSignature(); 29 abstract public Type[] getExceptionTypes(); 30 31 public boolean equals(Object o) { 32 if (o == null) 33 return false; 34 if (!(o instanceof MethodInfo)) 35 return false; 36 return getSignature().equals(((MethodInfo)o).getSignature()); 37 } 38 39 public int hashCode() { 40 return getSignature().hashCode(); 41 } 42 43 public String toString() { 44 return getSignature().toString(); 46 } 47 } 48 | Popular Tags |