01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.expression;
13:
14: import java.util.Map;
15:
16: import net.sf.oval.exception.ExpressionEvaluationException;
17:
18: /**
19: * @author Sebastian Thomschke
20: *
21: */
22: public interface ExpressionLanguage {
23: Object evaluate(String expression, Map<String, ?> values)
24: throws ExpressionEvaluationException;
25:
26: /**
27: * @throws ExpressionEvaluationException If an error during evaluation occurs or if the return value is not a boolean value.
28: */
29: boolean evaluateAsBoolean(String expression, Map<String, ?> values)
30: throws ExpressionEvaluationException;
31: }
|