001 /* 002 // $Id: //open/mondrian/src/main/mondrian/calc/CalcWriter.java#2 $ 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-2006 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.io.PrintWriter; 013 014 /** 015 * Visitor which serializes an expression to text. 016 * 017 * @author jhyde 018 * @version $Id: //open/mondrian/src/main/mondrian/calc/CalcWriter.java#2 $ 019 * @since Dec 23, 2005 020 */ 021 public class CalcWriter { 022 private final PrintWriter writer; 023 024 public CalcWriter(PrintWriter writer) { 025 this.writer = writer; 026 } 027 028 public PrintWriter getWriter() { 029 return writer; 030 } 031 } 032 033 // End CalcWriter.java