ExpressionLanguage.java :  » Development » OVal » net » sf » oval » expression » Java Open Source

Java Open Source » Development » OVal 
OVal » net » sf » oval » expression » ExpressionLanguage.java
/*******************************************************************************
 * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
 * Thomschke.
 * 
 * All Rights Reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Sebastian Thomschke - initial implementation.
 *******************************************************************************/
package net.sf.oval.expression;

import java.util.Map;

import net.sf.oval.exception.ExpressionEvaluationException;

/**
 * @author Sebastian Thomschke
 *
 */
public interface ExpressionLanguage
{
  Object evaluate(String expression, Map<String, ? > values) throws ExpressionEvaluationException;

  /**
   * @throws ExpressionEvaluationException If an error during evaluation occurs or if the return value is not a boolean value.
   */
  boolean evaluateAsBoolean(String expression, Map<String, ? > values)
      throws ExpressionEvaluationException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.