1 package jfun.yan.xml.nut; 2 3 import java.lang.reflect.Method ; 4 5 import jfun.util.SerializableMethod; 6 7 13 final class Method1 implements java.io.Serializable { 14 private final Class param_type; 15 private final SerializableMethod mtd; 16 public boolean equals(Object obj) { 17 if(obj instanceof Method1){ 18 final Method1 other = (Method1)obj; 19 return param_type.equals(other.param_type) && mtd.equals(other.mtd); 20 } 21 else return false; 22 } 23 public int hashCode() { 24 return mtd.hashCode(); 25 } 26 public String toString() { 27 return mtd.toString(); 28 } 29 public Method getMethod() { 30 return mtd.getMethod(); 31 } 32 public Class getParameterType() { 33 return param_type; 34 } 35 Method1(Method mtd, Class param_type) { 36 this.mtd = new SerializableMethod(mtd); 37 this.param_type = param_type; 38 } 39 40 } 41 | Popular Tags |