KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > nut > Evaluator


1 package jfun.yan.xml.nut;
2
3 /**
4  * This interface represents an object that evaluates a Nut
5  * object.
6  * <p>
7  * @author Ben Yu
8  * Nov 9, 2005 11:32:10 PM
9  */

10 public interface Evaluator extends java.io.Serializable JavaDoc {
11   /**
12    * Evaluate the object.
13    * @param nut the object.
14    * @return the evaluation result.
15    * @throws Exception if any error happens.
16    */

17   Object JavaDoc eval(Object JavaDoc nut)
18   throws Exception JavaDoc;
19   /**
20    * Get the expected evaluation result type.
21    */

22   Class JavaDoc getType();
23 }
24
Popular Tags