X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.basicexpression%2Fsrc%2Forg%2Fsimantics%2Fbasicexpression%2Fnode%2FASequenceArgList.java;h=7a68b2493d55f470e98ea8e551ea8178740d1cdf;hp=b59d7589176350c450c37581c3834e9af615cd8c;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/ASequenceArgList.java b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/ASequenceArgList.java index b59d75891..7a68b2493 100644 --- a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/ASequenceArgList.java +++ b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/ASequenceArgList.java @@ -1,180 +1,180 @@ -/* 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."); - } -} +/* 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."); + } +}