001 /* 002 // $Id: //open/mondrian/src/main/mondrian/calc/StringCalc.java#4 $ 003 // This software is subject to the terms of the Common Public License 004 // Agreement, available at the following URL: 005 // http://www.opensource.org/licenses/cpl.html. 006 // Copyright (C) 2006-2007 Julian Hyde 007 // All Rights Reserved. 008 // You must accept the terms of that agreement to use this software. 009 */ 010 package mondrian.calc; 011 012 import mondrian.olap.Evaluator; 013 014 /** 015 * Compiled expression whose result is a {@link String}. 016 * 017 * <p>When implementing this interface, it is convenient to extend 018 * {@link mondrian.calc.impl.AbstractStringCalc}, but it is not required. 019 * 020 * @author jhyde 021 * @version $Id: //open/mondrian/src/main/mondrian/calc/StringCalc.java#4 $ 022 * @since Sep 26, 2005 023 */ 024 public interface StringCalc extends Calc { 025 /** 026 * Evaluates this expression to yield a {@link String} value. 027 * 028 * @param evaluator Evaluation context 029 * @return evaluation result 030 */ 031 String evaluateString(Evaluator evaluator); 032 } 033 034 // End StringCalc.java