KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > scripting > Evaluator


1 package org.enhydra.shark.api.internal.scripting;
2
3
4 import org.enhydra.shark.api.*;
5 import org.enhydra.shark.api.internal.working.CallbackUtilities;
6 import java.util.*;
7
8 /**
9  * Interface that has to be implemented for each scripting language we
10  * want to use to evaluate conditions and expressions.
11  * @author Sasa Bojanic
12  */

13 public interface Evaluator {
14
15    void configure (CallbackUtilities cus) throws RootException;
16
17    public boolean evaluateCondition (SharkTransaction t,String JavaDoc condition,Map context) throws RootException;
18
19    public Object JavaDoc evaluateExpression (SharkTransaction t,String JavaDoc expr,Map context,Class JavaDoc resultClass) throws RootException;
20
21 }
22
Popular Tags