com.tonbeller.jpivot.olap.model
Class ExpressionPrinter

java.lang.Object
  extended by com.tonbeller.jpivot.olap.model.VisitorSupportStrict
      extended by com.tonbeller.jpivot.olap.model.ExpressionPrinter
All Implemented Interfaces:
Visitor

public class ExpressionPrinter
extends VisitorSupportStrict

prints an expression for testing purposes

Author:
av

Constructor Summary
ExpressionPrinter()
           
 
Method Summary
 java.lang.String print(Visitable e)
           
 java.lang.String toString()
           
 void visitBooleanExpr(BooleanExpr v)
           
 void visitDimension(Dimension v)
           
 void visitDoubleExpr(DoubleExpr v)
           
 void visitFunCallExpr(FunCallExpr v)
           
 void visitHierarchy(Hierarchy v)
           
 void visitIntegerExpr(IntegerExpr v)
           
 void visitLevel(Level v)
           
 void visitMember(Member v)
           
 void visitParameterExpr(ParameterExpr v)
           
 void visitPropertyExpr(PropertyExpr v)
           
 void visitStringExpr(StringExpr v)
           
 
Methods inherited from class com.tonbeller.jpivot.olap.model.VisitorSupportStrict
visitAxis, visitCell, visitEmptyMember, visitMemberPropertyMeta, visitPosition, visitProperty, visitResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionPrinter

public ExpressionPrinter()
Method Detail

print

public java.lang.String print(Visitable e)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

visitBooleanExpr

public void visitBooleanExpr(BooleanExpr v)
Specified by:
visitBooleanExpr in interface Visitor
Overrides:
visitBooleanExpr in class VisitorSupportStrict

visitDimension

public void visitDimension(Dimension v)
Specified by:
visitDimension in interface Visitor
Overrides:
visitDimension in class VisitorSupportStrict

visitDoubleExpr

public void visitDoubleExpr(DoubleExpr v)
Specified by:
visitDoubleExpr in interface Visitor
Overrides:
visitDoubleExpr in class VisitorSupportStrict

visitFunCallExpr

public void visitFunCallExpr(FunCallExpr v)
Specified by:
visitFunCallExpr in interface Visitor
Overrides:
visitFunCallExpr in class VisitorSupportStrict

visitHierarchy

public void visitHierarchy(Hierarchy v)
Specified by:
visitHierarchy in interface Visitor
Overrides:
visitHierarchy in class VisitorSupportStrict

visitIntegerExpr

public void visitIntegerExpr(IntegerExpr v)
Specified by:
visitIntegerExpr in interface Visitor
Overrides:
visitIntegerExpr in class VisitorSupportStrict

visitLevel

public void visitLevel(Level v)
Specified by:
visitLevel in interface Visitor
Overrides:
visitLevel in class VisitorSupportStrict

visitMember

public void visitMember(Member v)
Specified by:
visitMember in interface Visitor
Overrides:
visitMember in class VisitorSupportStrict

visitParameterExpr

public void visitParameterExpr(ParameterExpr v)
Specified by:
visitParameterExpr in interface Visitor
Overrides:
visitParameterExpr in class VisitorSupportStrict

visitStringExpr

public void visitStringExpr(StringExpr v)
Specified by:
visitStringExpr in interface Visitor
Overrides:
visitStringExpr in class VisitorSupportStrict

visitPropertyExpr

public void visitPropertyExpr(PropertyExpr v)
Specified by:
visitPropertyExpr in interface Visitor
Overrides:
visitPropertyExpr in class VisitorSupportStrict