-/* 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 AAddressValue extends PValue\r
-{\r
- private TAmpersand _ampersand_;\r
- private PRange _range_;\r
-\r
- public AAddressValue()\r
- {\r
- // Constructor\r
- }\r
-\r
- public AAddressValue(\r
- @SuppressWarnings("hiding") TAmpersand _ampersand_,\r
- @SuppressWarnings("hiding") PRange _range_)\r
- {\r
- // Constructor\r
- setAmpersand(_ampersand_);\r
-\r
- setRange(_range_);\r
-\r
- }\r
-\r
- @Override\r
- public Object clone()\r
- {\r
- return new AAddressValue(\r
- cloneNode(this._ampersand_),\r
- cloneNode(this._range_));\r
- }\r
-\r
- public void apply(Switch sw)\r
- {\r
- ((Analysis) sw).caseAAddressValue(this);\r
- }\r
-\r
- public TAmpersand getAmpersand()\r
- {\r
- return this._ampersand_;\r
- }\r
-\r
- public void setAmpersand(TAmpersand node)\r
- {\r
- if(this._ampersand_ != null)\r
- {\r
- this._ampersand_.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._ampersand_ = node;\r
- }\r
-\r
- public PRange getRange()\r
- {\r
- return this._range_;\r
- }\r
-\r
- public void setRange(PRange node)\r
- {\r
- if(this._range_ != null)\r
- {\r
- this._range_.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._range_ = node;\r
- }\r
-\r
- @Override\r
- public String toString()\r
- {\r
- return ""\r
- + toString(this._ampersand_)\r
- + toString(this._range_);\r
- }\r
-\r
- @Override\r
- void removeChild(@SuppressWarnings("unused") Node child)\r
- {\r
- // Remove child\r
- if(this._ampersand_ == child)\r
- {\r
- this._ampersand_ = null;\r
- return;\r
- }\r
-\r
- if(this._range_ == child)\r
- {\r
- this._range_ = 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._ampersand_ == oldChild)\r
- {\r
- setAmpersand((TAmpersand) newChild);\r
- return;\r
- }\r
-\r
- if(this._range_ == oldChild)\r
- {\r
- setRange((PRange) 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 AAddressValue extends PValue
+{
+ private TAmpersand _ampersand_;
+ private PRange _range_;
+
+ public AAddressValue()
+ {
+ // Constructor
+ }
+
+ public AAddressValue(
+ @SuppressWarnings("hiding") TAmpersand _ampersand_,
+ @SuppressWarnings("hiding") PRange _range_)
+ {
+ // Constructor
+ setAmpersand(_ampersand_);
+
+ setRange(_range_);
+
+ }
+
+ @Override
+ public Object clone()
+ {
+ return new AAddressValue(
+ cloneNode(this._ampersand_),
+ cloneNode(this._range_));
+ }
+
+ public void apply(Switch sw)
+ {
+ ((Analysis) sw).caseAAddressValue(this);
+ }
+
+ public TAmpersand getAmpersand()
+ {
+ return this._ampersand_;
+ }
+
+ public void setAmpersand(TAmpersand node)
+ {
+ if(this._ampersand_ != null)
+ {
+ this._ampersand_.parent(null);
+ }
+
+ if(node != null)
+ {
+ if(node.parent() != null)
+ {
+ node.parent().removeChild(node);
+ }
+
+ node.parent(this);
+ }
+
+ this._ampersand_ = node;
+ }
+
+ public PRange getRange()
+ {
+ return this._range_;
+ }
+
+ public void setRange(PRange node)
+ {
+ if(this._range_ != null)
+ {
+ this._range_.parent(null);
+ }
+
+ if(node != null)
+ {
+ if(node.parent() != null)
+ {
+ node.parent().removeChild(node);
+ }
+
+ node.parent(this);
+ }
+
+ this._range_ = node;
+ }
+
+ @Override
+ public String toString()
+ {
+ return ""
+ + toString(this._ampersand_)
+ + toString(this._range_);
+ }
+
+ @Override
+ void removeChild(@SuppressWarnings("unused") Node child)
+ {
+ // Remove child
+ if(this._ampersand_ == child)
+ {
+ this._ampersand_ = null;
+ return;
+ }
+
+ if(this._range_ == child)
+ {
+ this._range_ = null;
+ return;
+ }
+
+ throw new RuntimeException("Not a child.");
+ }
+
+ @Override
+ void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
+ {
+ // Replace child
+ if(this._ampersand_ == oldChild)
+ {
+ setAmpersand((TAmpersand) newChild);
+ return;
+ }
+
+ if(this._range_ == oldChild)
+ {
+ setRange((PRange) newChild);
+ return;
+ }
+
+ throw new RuntimeException("Not a child.");
+ }
+}