/* This file was generated by SableCC (http://www.sablecc.org/). */ package org.simantics.basicexpression.node; import org.simantics.basicexpression.analysis.*; @SuppressWarnings("nls") public final class ASequenceArgList extends PArgList { private PArgList _argList_; private TComma _comma_; private PExpression _expression_; public ASequenceArgList() { // Constructor } public ASequenceArgList( @SuppressWarnings("hiding") PArgList _argList_, @SuppressWarnings("hiding") TComma _comma_, @SuppressWarnings("hiding") PExpression _expression_) { // Constructor setArgList(_argList_); setComma(_comma_); setExpression(_expression_); } @Override public Object clone() { return new ASequenceArgList( cloneNode(this._argList_), cloneNode(this._comma_), cloneNode(this._expression_)); } public void apply(Switch sw) { ((Analysis) sw).caseASequenceArgList(this); } public PArgList getArgList() { return this._argList_; } public void setArgList(PArgList node) { if(this._argList_ != null) { this._argList_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._argList_ = node; } public TComma getComma() { return this._comma_; } public void setComma(TComma node) { if(this._comma_ != null) { this._comma_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._comma_ = node; } public PExpression getExpression() { return this._expression_; } public void setExpression(PExpression node) { if(this._expression_ != null) { this._expression_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._expression_ = node; } @Override public String toString() { return "" + toString(this._argList_) + toString(this._comma_) + toString(this._expression_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._argList_ == child) { this._argList_ = null; return; } if(this._comma_ == child) { this._comma_ = null; return; } if(this._expression_ == child) { this._expression_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._argList_ == oldChild) { setArgList((PArgList) newChild); return; } if(this._comma_ == oldChild) { setComma((TComma) newChild); return; } if(this._expression_ == oldChild) { setExpression((PExpression) newChild); return; } throw new RuntimeException("Not a child."); } }