]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/ASequenceArgList.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.basicexpression / src / org / simantics / basicexpression / node / ASequenceArgList.java
index b59d7589176350c450c37581c3834e9af615cd8c..7a68b2493d55f470e98ea8e551ea8178740d1cdf 100644 (file)
-/* This file was generated by SableCC (http://www.sablecc.org/). */\r
-\r
-package org.simantics.basicexpression.node;\r
-\r
-import org.simantics.basicexpression.analysis.*;\r
-\r
-@SuppressWarnings("nls")\r
-public final class ASequenceArgList extends PArgList\r
-{\r
-    private PArgList _argList_;\r
-    private TComma _comma_;\r
-    private PExpression _expression_;\r
-\r
-    public ASequenceArgList()\r
-    {\r
-        // Constructor\r
-    }\r
-\r
-    public ASequenceArgList(\r
-        @SuppressWarnings("hiding") PArgList _argList_,\r
-        @SuppressWarnings("hiding") TComma _comma_,\r
-        @SuppressWarnings("hiding") PExpression _expression_)\r
-    {\r
-        // Constructor\r
-        setArgList(_argList_);\r
-\r
-        setComma(_comma_);\r
-\r
-        setExpression(_expression_);\r
-\r
-    }\r
-\r
-    @Override\r
-    public Object clone()\r
-    {\r
-        return new ASequenceArgList(\r
-            cloneNode(this._argList_),\r
-            cloneNode(this._comma_),\r
-            cloneNode(this._expression_));\r
-    }\r
-\r
-    public void apply(Switch sw)\r
-    {\r
-        ((Analysis) sw).caseASequenceArgList(this);\r
-    }\r
-\r
-    public PArgList getArgList()\r
-    {\r
-        return this._argList_;\r
-    }\r
-\r
-    public void setArgList(PArgList node)\r
-    {\r
-        if(this._argList_ != null)\r
-        {\r
-            this._argList_.parent(null);\r
-        }\r
-\r
-        if(node != null)\r
-        {\r
-            if(node.parent() != null)\r
-            {\r
-                node.parent().removeChild(node);\r
-            }\r
-\r
-            node.parent(this);\r
-        }\r
-\r
-        this._argList_ = node;\r
-    }\r
-\r
-    public TComma getComma()\r
-    {\r
-        return this._comma_;\r
-    }\r
-\r
-    public void setComma(TComma node)\r
-    {\r
-        if(this._comma_ != null)\r
-        {\r
-            this._comma_.parent(null);\r
-        }\r
-\r
-        if(node != null)\r
-        {\r
-            if(node.parent() != null)\r
-            {\r
-                node.parent().removeChild(node);\r
-            }\r
-\r
-            node.parent(this);\r
-        }\r
-\r
-        this._comma_ = node;\r
-    }\r
-\r
-    public PExpression getExpression()\r
-    {\r
-        return this._expression_;\r
-    }\r
-\r
-    public void setExpression(PExpression node)\r
-    {\r
-        if(this._expression_ != null)\r
-        {\r
-            this._expression_.parent(null);\r
-        }\r
-\r
-        if(node != null)\r
-        {\r
-            if(node.parent() != null)\r
-            {\r
-                node.parent().removeChild(node);\r
-            }\r
-\r
-            node.parent(this);\r
-        }\r
-\r
-        this._expression_ = node;\r
-    }\r
-\r
-    @Override\r
-    public String toString()\r
-    {\r
-        return ""\r
-            + toString(this._argList_)\r
-            + toString(this._comma_)\r
-            + toString(this._expression_);\r
-    }\r
-\r
-    @Override\r
-    void removeChild(@SuppressWarnings("unused") Node child)\r
-    {\r
-        // Remove child\r
-        if(this._argList_ == child)\r
-        {\r
-            this._argList_ = null;\r
-            return;\r
-        }\r
-\r
-        if(this._comma_ == child)\r
-        {\r
-            this._comma_ = null;\r
-            return;\r
-        }\r
-\r
-        if(this._expression_ == child)\r
-        {\r
-            this._expression_ = null;\r
-            return;\r
-        }\r
-\r
-        throw new RuntimeException("Not a child.");\r
-    }\r
-\r
-    @Override\r
-    void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)\r
-    {\r
-        // Replace child\r
-        if(this._argList_ == oldChild)\r
-        {\r
-            setArgList((PArgList) newChild);\r
-            return;\r
-        }\r
-\r
-        if(this._comma_ == oldChild)\r
-        {\r
-            setComma((TComma) newChild);\r
-            return;\r
-        }\r
-\r
-        if(this._expression_ == oldChild)\r
-        {\r
-            setExpression((PExpression) newChild);\r
-            return;\r
-        }\r
-\r
-        throw new RuntimeException("Not a child.");\r
-    }\r
-}\r
+/* 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.");
+    }
+}