Package mondrian.calc
Class CalcWriter
- java.lang.Object
 - 
- mondrian.calc.CalcWriter
 
 
- 
public class CalcWriter extends Object
Visitor which serializes an expression to text.- Since:
 - Dec 23, 2005
 - Author:
 - jhyde
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CalcWriter(PrintWriter writer, boolean profiling) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenableProfiling()Whether to print out attributes relating to how a statement was actually executed.PrintWritergetWriter()voidindent()Increases the indentation level.voidoutdent()Decreases the indentation level.voidsetParentArgs(Calc calc, Map<String,Object> argumentMap)voidvisitCalc(Calc calc, String name, Map<String,Object> arguments, Calc[] childCalcs)voidvisitChild(int ordinal, Calc calc) 
 - 
 
- 
- 
Constructor Detail
- 
CalcWriter
public CalcWriter(PrintWriter writer, boolean profiling)
 
 - 
 
- 
Method Detail
- 
getWriter
public PrintWriter getWriter()
 
- 
visitChild
public void visitChild(int ordinal, Calc calc) 
- 
visitCalc
public void visitCalc(Calc calc, String name, Map<String,Object> arguments, Calc[] childCalcs)
 
- 
indent
public void indent()
Increases the indentation level. 
- 
outdent
public void outdent()
Decreases the indentation level. 
- 
enableProfiling
public boolean enableProfiling()
Whether to print out attributes relating to how a statement was actually executed. If false, client should only send attributes relating to the plan.- Returns:
 - Whether client should send attributes about profiling
 
 
 - 
 
 -