예제 #1
0
 public AMultipleArguments(
     PArgument _argument_,
     TComma _comma_,
     PArguments _arguments_
     )
 {
     SetArgument(_argument_);
     SetComma(_comma_);
     SetArguments(_arguments_);
 }
예제 #2
0
 internal override void RemoveChild(Node child)
 {
     if (_argument_ == child)
     {
         _argument_ = null;
         return;
     }
     if (_comma_ == child)
     {
         _comma_ = null;
         return;
     }
     if (_arguments_ == child)
     {
         _arguments_ = null;
         return;
     }
 }
예제 #3
0
        ArrayList New9()
        {
            ArrayList          nodeList        = new ArrayList();
            ArrayList          nodeArrayList3  = (ArrayList)Pop();
            ArrayList          nodeArrayList2  = (ArrayList)Pop();
            ArrayList          nodeArrayList1  = (ArrayList)Pop();
            PArgument          pargumentNode2  = (PArgument)nodeArrayList1[0];
            TComma             tcommaNode3     = (TComma)nodeArrayList2[0];
            PArguments         pargumentsNode4 = (PArguments)nodeArrayList3[0];
            AMultipleArguments pargumentsNode1 = new AMultipleArguments(
                pargumentNode2,
                tcommaNode3,
                pargumentsNode4
                );

            nodeList.Add(pargumentsNode1);
            return(nodeList);
        }
예제 #4
0
        public void SetArgument(PArgument node)
        {
            if (_argument_ != null)
            {
                _argument_.Parent(null);
            }

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

                node.Parent(this);
            }

            _argument_ = node;
        }