Package mondrian.mdx
Class MdxVisitorImpl
java.lang.Object
mondrian.mdx.MdxVisitorImpl
- All Implemented Interfaces:
MdxVisitor
- Direct Known Subclasses:
IdentifierVisitor
,MemberExtractingVisitor
,ResolvedFunCallFinder
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
visit
(DimensionExpr dimensionExpr) Visits a DimensionExpr.visit
(HierarchyExpr hierarchyExpr) Visits a HierarchyExpr.Visits a LevelExpr.visit
(MemberExpr memberExpr) Visits a MemberExpr.visit
(NamedSetExpr namedSetExpr) Visits a NamedSetExpr.visit
(ParameterExpr parameterExpr) Visits a Parameter.visit
(ResolvedFunCall call) Visits a ResolvedFunCall.visit
(UnresolvedFunCall call) Visits an UnresolvedFunCall.Visits a Formula.Visits an Id.Visits a Literal.Visits a Query.Visits a QueryAxis.protected Exp[]
visitArray
(Exp[] args) Visits an array of expressions.
-
Constructor Details
-
MdxVisitorImpl
public MdxVisitorImpl()
-
-
Method Details
-
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
Description copied from interface:MdxVisitor
Visits a Query.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a QueryAxis.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a Formula.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits an UnresolvedFunCall.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a ResolvedFunCall.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits an Id.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a Parameter.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a DimensionExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a HierarchyExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a LevelExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a MemberExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a NamedSetExpr.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visit
Description copied from interface:MdxVisitor
Visits a Literal.- Specified by:
visit
in interfaceMdxVisitor
- See Also:
-
visitArray
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.
-