Exemplo n.º 1
0
 public AMultExpr2(
     PExpr2 _expr2_,
     TMult _mult_,
     POperand _operand_
     )
 {
     SetExpr2(_expr2_);
     SetMult(_mult_);
     SetOperand(_operand_);
 }
Exemplo n.º 2
0
 internal override void RemoveChild(Node child)
 {
     if (_expr2_ == child)
     {
         _expr2_ = null;
         return;
     }
     if (_mult_ == child)
     {
         _mult_ = null;
         return;
     }
     if (_operand_ == child)
     {
         _operand_ = null;
         return;
     }
 }
Exemplo n.º 3
0
        public void SetMult(TMult node)
        {
            if (_mult_ != null)
            {
                _mult_.Parent(null);
            }

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

                node.Parent(this);
            }

            _mult_ = node;
        }