internal override void RemoveChild(Node child) { if (_expr2_ == child) { _expr2_ = null; return; } }
public AMultExpr2( PExpr2 _expr2_, TMult _mult_, POperand _operand_ ) { SetExpr2(_expr2_); SetMult(_mult_); SetOperand(_operand_); }
public APlusExpr( PExpr _expr_, TPlus _plus_, PExpr2 _expr2_ ) { SetExpr(_expr_); SetPlus(_plus_); SetExpr2(_expr2_); }
ArrayList New13() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList)Pop(); PExpr2 pexpr2Node2 = (PExpr2)nodeArrayList1[0]; APassExpr pexprNode1 = new APassExpr( pexpr2Node2 ); nodeList.Add(pexprNode1); return(nodeList); }
internal override void RemoveChild(Node child) { if (_expr2_ == child) { _expr2_ = null; return; } if (_mult_ == child) { _mult_ = null; return; } if (_operand_ == child) { _operand_ = null; return; } }
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); }
ArrayList New12() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList3 = (ArrayList)Pop(); ArrayList nodeArrayList2 = (ArrayList)Pop(); ArrayList nodeArrayList1 = (ArrayList)Pop(); PExpr pexprNode2 = (PExpr)nodeArrayList1[0]; TPlus tplusNode3 = (TPlus)nodeArrayList2[0]; PExpr2 pexpr2Node4 = (PExpr2)nodeArrayList3[0]; APlusExpr pexprNode1 = new APlusExpr( pexprNode2, tplusNode3, pexpr2Node4 ); nodeList.Add(pexprNode1); return(nodeList); }
public void SetExpr2(PExpr2 node) { if (_expr2_ != null) { _expr2_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _expr2_ = node; }
public APassExpr( PExpr2 _expr2_ ) { SetExpr2(_expr2_); }