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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvisit(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:
shouldVisitChildrenin 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:MdxVisitorVisits a Query.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a QueryAxis.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a Formula.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits an UnresolvedFunCall.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a ResolvedFunCall.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits an Id.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a Parameter.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a DimensionExpr.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a HierarchyExpr.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a LevelExpr.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a MemberExpr.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a NamedSetExpr.- Specified by:
visitin interfaceMdxVisitor- See Also:
-
visit
Description copied from interface:MdxVisitorVisits a Literal.- Specified by:
visitin 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
argsiff none of the expressions are changed.
-