KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > util > MethodPredicate


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 JavaDoc mtd);
19   /**
20    * Get the name of the predicate. This is useful in error message
21    * when ambiguity happens.
22    */

23   String JavaDoc toString();
24 }
Popular Tags