1 /* This file was generated by SableCC (http://www.sablecc.org/). */
3 package org.simantics.basicexpression.node;
5 import org.simantics.basicexpression.analysis.*;
7 @SuppressWarnings("nls")
8 public final class ARangeValue extends PValue
10 private PRange _range_;
18 @SuppressWarnings("hiding") PRange _range_)
28 return new ARangeValue(
29 cloneNode(this._range_));
32 public void apply(Switch sw)
34 ((Analysis) sw).caseARangeValue(this);
37 public PRange getRange()
42 public void setRange(PRange node)
44 if(this._range_ != null)
46 this._range_.parent(null);
51 if(node.parent() != null)
53 node.parent().removeChild(node);
63 public String toString()
66 + toString(this._range_);
70 void removeChild(@SuppressWarnings("unused") Node child)
73 if(this._range_ == child)
79 throw new RuntimeException("Not a child.");
83 void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
86 if(this._range_ == oldChild)
88 setRange((PRange) newChild);
92 throw new RuntimeException("Not a child.");