1 /* 2 // $Id: //open/mondrian/src/main/mondrian/calc/StringCalc.java#4 $ 3 // This software is subject to the terms of the Common Public License 4 // Agreement, available at the following URL: 5 // http://www.opensource.org/licenses/cpl.html. 6 // Copyright (C) 2006-2007 Julian Hyde 7 // All Rights Reserved. 8 // You must accept the terms of that agreement to use this software. 9 */ 10 package mondrian.calc; 11 12 import mondrian.olap.Evaluator; 13 14 /** 15 * Compiled expression whose result is a {@link String}. 16 * 17 * <p>When implementing this interface, it is convenient to extend 18 * {@link mondrian.calc.impl.AbstractStringCalc}, but it is not required. 19 * 20 * @author jhyde 21 * @version $Id: //open/mondrian/src/main/mondrian/calc/StringCalc.java#4 $ 22 * @since Sep 26, 2005 23 */ 24 public interface StringCalc extends Calc { 25 /** 26 * Evaluates this expression to yield a {@link String} value. 27 * 28 * @param evaluator Evaluation context 29 * @return evaluation result 30 */ 31 String evaluateString(Evaluator evaluator); 32 } 33 34 // End StringCalc.java 35