Ejemplo n.º 1
0
 internal override void RemoveChild(Node child)
 {
     if (_operand_ == child)
     {
         _operand_ = null;
         return;
     }
 }
Ejemplo n.º 2
0
 public AMultExpr2(
     PExpr2 _expr2_,
     TMult _mult_,
     POperand _operand_
     )
 {
     SetExpr2(_expr2_);
     SetMult(_mult_);
     SetOperand(_operand_);
 }
Ejemplo n.º 3
0
        ArrayList New15()
        {
            ArrayList  nodeList       = new ArrayList();
            ArrayList  nodeArrayList1 = (ArrayList)Pop();
            POperand   poperandNode2  = (POperand)nodeArrayList1[0];
            APassExpr2 pexpr2Node1    = new APassExpr2(
                poperandNode2
                );

            nodeList.Add(pexpr2Node1);
            return(nodeList);
        }
Ejemplo n.º 4
0
        ArrayList New14()
        {
            ArrayList  nodeList       = new ArrayList();
            ArrayList  nodeArrayList3 = (ArrayList)Pop();
            ArrayList  nodeArrayList2 = (ArrayList)Pop();
            ArrayList  nodeArrayList1 = (ArrayList)Pop();
            PExpr2     pexpr2Node2    = (PExpr2)nodeArrayList1[0];
            TMult      tmultNode3     = (TMult)nodeArrayList2[0];
            POperand   poperandNode4  = (POperand)nodeArrayList3[0];
            AMultExpr2 pexpr2Node1    = new AMultExpr2(
                pexpr2Node2,
                tmultNode3,
                poperandNode4
                );

            nodeList.Add(pexpr2Node1);
            return(nodeList);
        }
Ejemplo n.º 5
0
        public void SetOperand(POperand node)
        {
            if (_operand_ != null)
            {
                _operand_.Parent(null);
            }

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

                node.Parent(this);
            }

            _operand_ = node;
        }
Ejemplo n.º 6
0
 public APassExpr2(
     POperand _operand_
     )
 {
     SetOperand(_operand_);
 }