001package gudusoft.gsqlparser.nodes.mdx;
002/*
003 * Date: 11-12-31
004 */
005
006
007import gudusoft.gsqlparser.nodes.TPTNodeList;
008import gudusoft.gsqlparser.nodes.TParseTreeNode;
009
010public class TMdxSelectNode extends TParseTreeNode {
011    private TPTNodeList <TMdxWithNode> withs;
012    private TPTNodeList <TMdxAxisNode> axes;
013    private TMdxIdentifierNode cube;
014    private TMdxSelectNode subQuery;
015    private TMdxWhereNode where;
016    private TPTNodeList <TMdxExpNode> cellProps;
017    private TMdxCreateMeasureNode measureNode;
018
019    public TPTNodeList<TMdxAxisNode> getAxes() {
020        return axes;
021    }
022
023    public TPTNodeList<TMdxExpNode> getCellProps() {
024        return cellProps;
025    }
026
027    public TMdxIdentifierNode getCube() {
028        return cube;
029    }
030
031    public TMdxSelectNode getSubQuery() {
032        return subQuery;
033    }
034
035    public TMdxWhereNode getWhere() {
036        return where;
037    }
038
039    public TPTNodeList<TMdxWithNode> getWiths() {
040        return withs;
041    }
042
043
044    public TMdxCreateMeasureNode getMeasureNode() {
045        return measureNode;
046    }
047
048    public void init(Object arg1,Object arg2,Object arg3,Object arg4,Object arg5,Object arg6){
049        if (arg1 != null){
050            if (arg1 instanceof TMdxCreateMeasureNode){
051                measureNode = (TMdxCreateMeasureNode)arg1;
052
053            }else{
054                withs = (TPTNodeList<TMdxWithNode>)arg1;
055            }
056        }
057
058        axes = (TPTNodeList <TMdxAxisNode>)arg2;
059        cube = (TMdxIdentifierNode)arg3;
060        subQuery = (TMdxSelectNode)arg4;
061        where = (TMdxWhereNode)arg5;
062        cellProps = (TPTNodeList <TMdxExpNode>)arg6;
063    }
064
065}