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