/* 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 ARviValue extends PValue { private TRvi _rvi_; public ARviValue() { // Constructor } public ARviValue( @SuppressWarnings("hiding") TRvi _rvi_) { // Constructor setRvi(_rvi_); } @Override public Object clone() { return new ARviValue( cloneNode(this._rvi_)); } public void apply(Switch sw) { ((Analysis) sw).caseARviValue(this); } public TRvi getRvi() { return this._rvi_; } public void setRvi(TRvi node) { if(this._rvi_ != null) { this._rvi_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rvi_ = node; } @Override public String toString() { return "" + toString(this._rvi_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._rvi_ == child) { this._rvi_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._rvi_ == oldChild) { setRvi((TRvi) newChild); return; } throw new RuntimeException("Not a child."); } }