1 package jfun.yan.xml.nut;2 3 /**4 * This interface represents an object that evaluates a Nut5 * object.6 * <p>7 * @author Ben Yu8 * Nov 9, 2005 11:32:10 PM9 */10 public interface Evaluator extends java.io.Serializable {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 eval(Object nut)18 throws Exception ;19 /**20 * Get the expected evaluation result type.21 */22 Class getType();23 }24