mondrian.olap
Class ExpBase

java.lang.Object
  extended by mondrian.olap.QueryPart
      extended by mondrian.olap.ExpBase
All Implemented Interfaces:
Exp, Walkable
Direct Known Subclasses:
DimensionExpr, HierarchyExpr, Id, LevelExpr, Literal, MemberExpr, NamedSetExpr, ParameterExpr, ResolvedFunCall, UnresolvedFunCall

public abstract class ExpBase
extends QueryPart
implements Exp

Skeleton implementation of Exp interface.

 

Constructor Summary
protected ExpBase()
           
 
Method Summary
 Calc accept(ExpCompiler compiler)
          Converts this expression into an a tree of expressions which can be efficiently evaluated.
abstract  Exp clone()
           
protected static Exp[] cloneArray(Exp[] a)
           
static int[] getTypes(Exp[] exps)
           
static void unparseList(PrintWriter pw, Exp[] exps, String start, String mid, String end)
           
 
Methods inherited from class mondrian.olap.QueryPart
getChildren, unparse
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mondrian.olap.Exp
accept, accept, getCategory, getType, unparse
 

Constructor Detail

ExpBase

protected ExpBase()
Method Detail

cloneArray

protected static Exp[] cloneArray(Exp[] a)

clone

public abstract Exp clone()
Specified by:
clone in interface Exp
Overrides:
clone in class Object

unparseList

public static void unparseList(PrintWriter pw,
                               Exp[] exps,
                               String start,
                               String mid,
                               String end)

getTypes

public static int[] getTypes(Exp[] exps)

accept

public Calc accept(ExpCompiler compiler)
Description copied from interface: Exp
Converts this expression into an a tree of expressions which can be efficiently evaluated.

Specified by:
accept in interface Exp
Returns:
A compiled expression

SourceForge.net_Logo