jfun.yan.xml.nut
Interface Evaluator

All Superinterfaces:
java.io.Serializable

public interface Evaluator
extends java.io.Serializable

This interface represents an object that evaluates a Nut object.

Author:
Ben Yu Nov 9, 2005 11:32:10 PM

Method Summary
 java.lang.Object eval(java.lang.Object nut)
          Evaluate the object.
 java.lang.Class getType()
          Get the expected evaluation result type.
 

Method Detail

eval

java.lang.Object eval(java.lang.Object nut)
                      throws java.lang.Exception
Evaluate the object.

Parameters:
nut - the object.
Returns:
the evaluation result.
Throws:
java.lang.Exception - if any error happens.

getType

java.lang.Class getType()
Get the expected evaluation result type.