001 /* 002 // $Id: //open/mondrian/src/main/mondrian/calc/MemberListCalc.java#1 $ 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-2008 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 java.util.List; 013 014 import mondrian.olap.Evaluator; 015 import mondrian.olap.Member; 016 017 // End ListCalc.java 018 019 /** 020 * Expression which evaluates a set of members or tuples to a list. 021 * 022 * @author jhyde 023 * @version $Id: //open/mondrian/src/main/mondrian/calc/MemberListCalc.java#1 $ 024 * @since Sep 27, 2005 025 */ 026 public interface MemberListCalc extends ListCalc { 027 /** 028 * Evaluates an expression to yield a list of members. 029 * 030 * <p>The list is immutable if {@link #getResultStyle()} yields 031 * {@link mondrian.calc.ResultStyle#MUTABLE_LIST}. Otherwise, 032 * the caller must not modify the list. 033 * 034 * @param evaluator Evaluation context 035 * @return A list of members, never null. 036 */ 037 List<Member> evaluateMemberList(Evaluator evaluator); 038 } 039 040 // End MemberListCalc.java