X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.basicexpression%2Fsrc%2Forg%2Fsimantics%2Fbasicexpression%2Fnode%2FAUnaryminusUnary.java;h=944bb85f4d5a05595b4af88376e93094f73c62cd;hp=70c661048239cdebfb0ed25ea2a33b366a0b8455;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/AUnaryminusUnary.java b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/AUnaryminusUnary.java index 70c661048..944bb85f4 100644 --- a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/AUnaryminusUnary.java +++ b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/AUnaryminusUnary.java @@ -1,137 +1,137 @@ -/* 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 AUnaryminusUnary extends PUnary -{ - private TMinus _minus_; - private PUnary _unary_; - - public AUnaryminusUnary() - { - // Constructor - } - - public AUnaryminusUnary( - @SuppressWarnings("hiding") TMinus _minus_, - @SuppressWarnings("hiding") PUnary _unary_) - { - // Constructor - setMinus(_minus_); - - setUnary(_unary_); - - } - - @Override - public Object clone() - { - return new AUnaryminusUnary( - cloneNode(this._minus_), - cloneNode(this._unary_)); - } - - public void apply(Switch sw) - { - ((Analysis) sw).caseAUnaryminusUnary(this); - } - - public TMinus getMinus() - { - return this._minus_; - } - - public void setMinus(TMinus node) - { - if(this._minus_ != null) - { - this._minus_.parent(null); - } - - if(node != null) - { - if(node.parent() != null) - { - node.parent().removeChild(node); - } - - node.parent(this); - } - - this._minus_ = node; - } - - public PUnary getUnary() - { - return this._unary_; - } - - public void setUnary(PUnary node) - { - if(this._unary_ != null) - { - this._unary_.parent(null); - } - - if(node != null) - { - if(node.parent() != null) - { - node.parent().removeChild(node); - } - - node.parent(this); - } - - this._unary_ = node; - } - - @Override - public String toString() - { - return "" - + toString(this._minus_) - + toString(this._unary_); - } - - @Override - void removeChild(@SuppressWarnings("unused") Node child) - { - // Remove child - if(this._minus_ == child) - { - this._minus_ = null; - return; - } - - if(this._unary_ == child) - { - this._unary_ = null; - return; - } - - throw new RuntimeException("Not a child."); - } - - @Override - void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) - { - // Replace child - if(this._minus_ == oldChild) - { - setMinus((TMinus) newChild); - return; - } - - if(this._unary_ == oldChild) - { - setUnary((PUnary) newChild); - return; - } - - throw new RuntimeException("Not a child."); - } -} +/* 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 AUnaryminusUnary extends PUnary +{ + private TMinus _minus_; + private PUnary _unary_; + + public AUnaryminusUnary() + { + // Constructor + } + + public AUnaryminusUnary( + @SuppressWarnings("hiding") TMinus _minus_, + @SuppressWarnings("hiding") PUnary _unary_) + { + // Constructor + setMinus(_minus_); + + setUnary(_unary_); + + } + + @Override + public Object clone() + { + return new AUnaryminusUnary( + cloneNode(this._minus_), + cloneNode(this._unary_)); + } + + public void apply(Switch sw) + { + ((Analysis) sw).caseAUnaryminusUnary(this); + } + + public TMinus getMinus() + { + return this._minus_; + } + + public void setMinus(TMinus node) + { + if(this._minus_ != null) + { + this._minus_.parent(null); + } + + if(node != null) + { + if(node.parent() != null) + { + node.parent().removeChild(node); + } + + node.parent(this); + } + + this._minus_ = node; + } + + public PUnary getUnary() + { + return this._unary_; + } + + public void setUnary(PUnary node) + { + if(this._unary_ != null) + { + this._unary_.parent(null); + } + + if(node != null) + { + if(node.parent() != null) + { + node.parent().removeChild(node); + } + + node.parent(this); + } + + this._unary_ = node; + } + + @Override + public String toString() + { + return "" + + toString(this._minus_) + + toString(this._unary_); + } + + @Override + void removeChild(@SuppressWarnings("unused") Node child) + { + // Remove child + if(this._minus_ == child) + { + this._minus_ = null; + return; + } + + if(this._unary_ == child) + { + this._unary_ = null; + return; + } + + throw new RuntimeException("Not a child."); + } + + @Override + void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) + { + // Replace child + if(this._minus_ == oldChild) + { + setMinus((TMinus) newChild); + return; + } + + if(this._unary_ == oldChild) + { + setUnary((PUnary) newChild); + return; + } + + throw new RuntimeException("Not a child."); + } +}