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 ARviValue extends PValue
18 @SuppressWarnings("hiding") TRvi _rvi_)
29 cloneNode(this._rvi_));
32 public void apply(Switch sw)
34 ((Analysis) sw).caseARviValue(this);
42 public void setRvi(TRvi node)
44 if(this._rvi_ != null)
46 this._rvi_.parent(null);
51 if(node.parent() != null)
53 node.parent().removeChild(node);
63 public String toString()
66 + toString(this._rvi_);
70 void removeChild(@SuppressWarnings("unused") Node child)
73 if(this._rvi_ == child)
79 throw new RuntimeException("Not a child.");
83 void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild)
86 if(this._rvi_ == oldChild)
88 setRvi((TRvi) newChild);
92 throw new RuntimeException("Not a child.");