Package mondrian.mdx
Class MdxVisitorImpl
- java.lang.Object
-
- mondrian.mdx.MdxVisitorImpl
-
- All Implemented Interfaces:
MdxVisitor
- Direct Known Subclasses:
IdentifierVisitor
,MemberExtractingVisitor
,ResolvedFunCallFinder
public class MdxVisitorImpl extends Object implements MdxVisitor
Default implementation of the visitor interface,MdxVisitor
.The method implementations just ask the child nodes to
Exp.accept(MdxVisitor)
this visitor.- Since:
- Jul 21, 2006
- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description MdxVisitorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldVisitChildren()
void
turnOffVisitChildren()
void
turnOnVisitChildren()
Object
visit(DimensionExpr dimensionExpr)
Visits a DimensionExpr.Object
visit(HierarchyExpr hierarchyExpr)
Visits a HierarchyExpr.Object
visit(LevelExpr levelExpr)
Visits a LevelExpr.Object
visit(MemberExpr memberExpr)
Visits a MemberExpr.Object
visit(NamedSetExpr namedSetExpr)
Visits a NamedSetExpr.Object
visit(ParameterExpr parameterExpr)
Visits a Parameter.Object
visit(ResolvedFunCall call)
Visits a ResolvedFunCall.Object
visit(UnresolvedFunCall call)
Visits an UnresolvedFunCall.Object
visit(Formula formula)
Visits a Formula.Object
visit(Id id)
Visits an Id.Object
visit(Literal literal)
Visits a Literal.Object
visit(Query query)
Visits a Query.Object
visit(QueryAxis queryAxis)
Visits a QueryAxis.protected Exp[]
visitArray(Exp[] args)
Visits an array of expressions.
-
-
-
Method Detail
-
shouldVisitChildren
public boolean shouldVisitChildren()
- Specified by:
shouldVisitChildren
in interfaceMdxVisitor
- Returns:
- Indicates whether the visitee should call accept on it's children
-
turnOnVisitChildren
public void turnOnVisitChildren()
-
turnOffVisitChildren
public void turnOffVisitChildren()
-
visit
public Object visit(Query query)
Description copied from interface:MdxVisitor
Visits a Query.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
Query.accept(MdxVisitor)
-
visit
public Object visit(QueryAxis queryAxis)
Description copied from interface:MdxVisitor
Visits a QueryAxis.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
QueryAxis.accept(MdxVisitor)
-
visit
public Object visit(Formula formula)
Description copied from interface:MdxVisitor
Visits a Formula.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
Formula.accept(MdxVisitor)
-
visit
public Object visit(UnresolvedFunCall call)
Description copied from interface:MdxVisitor
Visits an UnresolvedFunCall.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
UnresolvedFunCall.accept(MdxVisitor)
-
visit
public Object visit(ResolvedFunCall call)
Description copied from interface:MdxVisitor
Visits a ResolvedFunCall.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
ResolvedFunCall.accept(MdxVisitor)
-
visit
public Object visit(Id id)
Description copied from interface:MdxVisitor
Visits an Id.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
Id.accept(MdxVisitor)
-
visit
public Object visit(ParameterExpr parameterExpr)
Description copied from interface:MdxVisitor
Visits a Parameter.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
ParameterExpr.accept(MdxVisitor)
-
visit
public Object visit(DimensionExpr dimensionExpr)
Description copied from interface:MdxVisitor
Visits a DimensionExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
DimensionExpr.accept(MdxVisitor)
-
visit
public Object visit(HierarchyExpr hierarchyExpr)
Description copied from interface:MdxVisitor
Visits a HierarchyExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
HierarchyExpr.accept(MdxVisitor)
-
visit
public Object visit(LevelExpr levelExpr)
Description copied from interface:MdxVisitor
Visits a LevelExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
LevelExpr.accept(MdxVisitor)
-
visit
public Object visit(MemberExpr memberExpr)
Description copied from interface:MdxVisitor
Visits a MemberExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
MemberExpr.accept(MdxVisitor)
-
visit
public Object visit(NamedSetExpr namedSetExpr)
Description copied from interface:MdxVisitor
Visits a NamedSetExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
NamedSetExpr.accept(MdxVisitor)
-
visit
public Object visit(Literal literal)
Description copied from interface:MdxVisitor
Visits a Literal.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
Literal.accept(MdxVisitor)
-
visitArray
protected Exp[] visitArray(Exp[] args)
Visits an array of expressions. Returns the same array if none of the expressions are changed, otherwise a new array.- Parameters:
args
- Array of expressions- Returns:
- Array of visited expressions; same as
args
iff none of the expressions are changed.
-
-