コード例 #1
0
 internal override void RemoveChild(Node child)
 {
     if (_stmt_ == child)
     {
         _stmt_ = null;
         return;
     }
 }
コード例 #2
0
 public AMultipleStmts(
     PStmts _stmts_,
     PStmt _stmt_
     )
 {
     SetStmts(_stmts_);
     SetStmt(_stmt_);
 }
コード例 #3
0
        ArrayList New2()
        {
            ArrayList    nodeList       = new ArrayList();
            ArrayList    nodeArrayList1 = (ArrayList)Pop();
            PStmt        pstmtNode2     = (PStmt)nodeArrayList1[0];
            ASingleStmts pstmtsNode1    = new ASingleStmts(
                pstmtNode2
                );

            nodeList.Add(pstmtsNode1);
            return(nodeList);
        }
コード例 #4
0
        ArrayList New1()
        {
            ArrayList      nodeList       = new ArrayList();
            ArrayList      nodeArrayList2 = (ArrayList)Pop();
            ArrayList      nodeArrayList1 = (ArrayList)Pop();
            PStmts         pstmtsNode2    = (PStmts)nodeArrayList1[0];
            PStmt          pstmtNode3     = (PStmt)nodeArrayList2[0];
            AMultipleStmts pstmtsNode1    = new AMultipleStmts(
                pstmtsNode2,
                pstmtNode3
                );

            nodeList.Add(pstmtsNode1);
            return(nodeList);
        }
コード例 #5
0
        public void SetStmt(PStmt node)
        {
            if (_stmt_ != null)
            {
                _stmt_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _stmt_ = node;
        }
コード例 #6
0
 public ASingleStmts(
     PStmt _stmt_
     )
 {
     SetStmt(_stmt_);
 }