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