mondrian.mdx
Class NamedSetExpr

java.lang.Object
  extended by mondrian.olap.QueryPart
      extended by mondrian.olap.ExpBase
          extended by mondrian.mdx.NamedSetExpr
All Implemented Interfaces:
Exp, Walkable

public class NamedSetExpr
extends ExpBase
implements Exp

Usage of a NamedSet in an MDX expression.

Since:
Sep 26, 2005
Author:
jhyde
 

Constructor Summary
NamedSetExpr(NamedSet namedSet)
          Creates a usage of a named set.
 
Method Summary
 Calc accept(ExpCompiler compiler)
          Converts this expression into an a tree of expressions which can be efficiently evaluated.
 Object accept(MdxVisitor visitor)
          Accepts a visitor to this Exp.
 Exp accept(Validator validator)
          Validates this expression.
 NamedSetExpr clone()
           
 int getCategory()
          Returns the Category of the expression.
 NamedSet getNamedSet()
          Returns the named set.
 Type getType()
          Returns the type of this expression.
 String toString()
           
 
Methods inherited from class mondrian.olap.ExpBase
cloneArray, getTypes, unparseList
 
Methods inherited from class mondrian.olap.QueryPart
getChildren, unparse
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mondrian.olap.Exp
unparse
 

Constructor Detail

NamedSetExpr

public NamedSetExpr(NamedSet namedSet)
Creates a usage of a named set.

Pre-condition:
NamedSet != null
Parameters:
namedSet - namedSet
Method Detail

getNamedSet

public NamedSet getNamedSet()
Returns the named set.

Post-condition:
return != null

toString

public String toString()
Overrides:
toString in class Object

clone

public NamedSetExpr clone()
Specified by:
clone in interface Exp
Specified by:
clone in class ExpBase

getCategory

public int getCategory()
Description copied from interface: Exp
Returns the Category of the expression.

Specified by:
getCategory in interface Exp

accept

public Exp accept(Validator validator)
Description copied from interface: Exp
Validates this expression. The validator acts in the role of 'visitor' (see Gang of Four 'visitor pattern'), and an expression in the role of 'visitee'.

Specified by:
accept in interface Exp
Parameters:
validator - Validator contains validation context
Returns:
The validated expression; often but not always the same as this expression

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
Overrides:
accept in class ExpBase
Returns:
A compiled expression

accept

public Object accept(MdxVisitor visitor)
Description copied from interface: Exp
Accepts a visitor to this Exp. The implementation should generally dispatches to the MdxVisitor.visit(mondrian.olap.Query) method appropriate to the type of expression.

Specified by:
accept in interface Exp
Parameters:
visitor - Visitor

getType

public Type getType()
Description copied from interface: Exp
Returns the type of this expression. Never null.

Specified by:
getType in interface Exp

SourceForge.net_Logo