1 /** 2 * 3 */ 4 package jfun.yan.util; 5 6 /** 7 * A predicate used to filter methods. 8 * <p> 9 * @author Ben Yu 10 * Nov 14, 2005 10:43:59 PM 11 */ 12 public interface MethodPredicate { 13 /** 14 * Apply the predicate against a Method. 15 * @param mtd the Method object. 16 * @return whether this Method satisfies the requirement. 17 */ 18 boolean isMethod(java.lang.reflect.Method mtd); 19 /** 20 * Get the name of the predicate. This is useful in error message 21 * when ambiguity happens. 22 */ 23 String toString(); 24 }