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%2FStart.java;h=d5a7d5e88c076c8367a3d387ce8b8ab3d54fb5b1;hp=f458beb799428a590f63dd0c99fd2074d4ab3361;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/Start.java b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/Start.java index f458beb79..d5a7d5e88 100644 --- a/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/Start.java +++ b/bundles/org.simantics.basicexpression/src/org/simantics/basicexpression/node/Start.java @@ -1,132 +1,132 @@ -/* 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 Start extends Node -{ - private PExpression _pExpression_; - private EOF _eof_; - - public Start() - { - // Empty body - } - - public Start( - @SuppressWarnings("hiding") PExpression _pExpression_, - @SuppressWarnings("hiding") EOF _eof_) - { - setPExpression(_pExpression_); - setEOF(_eof_); - } - - @Override - public Object clone() - { - return new Start( - cloneNode(this._pExpression_), - cloneNode(this._eof_)); - } - - public void apply(Switch sw) - { - ((Analysis) sw).caseStart(this); - } - - public PExpression getPExpression() - { - return this._pExpression_; - } - - public void setPExpression(PExpression node) - { - if(this._pExpression_ != null) - { - this._pExpression_.parent(null); - } - - if(node != null) - { - if(node.parent() != null) - { - node.parent().removeChild(node); - } - - node.parent(this); - } - - this._pExpression_ = node; - } - - public EOF getEOF() - { - return this._eof_; - } - - public void setEOF(EOF node) - { - if(this._eof_ != null) - { - this._eof_.parent(null); - } - - if(node != null) - { - if(node.parent() != null) - { - node.parent().removeChild(node); - } - - node.parent(this); - } - - this._eof_ = node; - } - - @Override - void removeChild(Node child) - { - if(this._pExpression_ == child) - { - this._pExpression_ = null; - return; - } - - if(this._eof_ == child) - { - this._eof_ = null; - return; - } - - throw new RuntimeException("Not a child."); - } - - @Override - void replaceChild(Node oldChild, Node newChild) - { - if(this._pExpression_ == oldChild) - { - setPExpression((PExpression) newChild); - return; - } - - if(this._eof_ == oldChild) - { - setEOF((EOF) newChild); - return; - } - - throw new RuntimeException("Not a child."); - } - - @Override - public String toString() - { - return "" + - toString(this._pExpression_) + - toString(this._eof_); - } -} +/* 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 Start extends Node +{ + private PExpression _pExpression_; + private EOF _eof_; + + public Start() + { + // Empty body + } + + public Start( + @SuppressWarnings("hiding") PExpression _pExpression_, + @SuppressWarnings("hiding") EOF _eof_) + { + setPExpression(_pExpression_); + setEOF(_eof_); + } + + @Override + public Object clone() + { + return new Start( + cloneNode(this._pExpression_), + cloneNode(this._eof_)); + } + + public void apply(Switch sw) + { + ((Analysis) sw).caseStart(this); + } + + public PExpression getPExpression() + { + return this._pExpression_; + } + + public void setPExpression(PExpression node) + { + if(this._pExpression_ != null) + { + this._pExpression_.parent(null); + } + + if(node != null) + { + if(node.parent() != null) + { + node.parent().removeChild(node); + } + + node.parent(this); + } + + this._pExpression_ = node; + } + + public EOF getEOF() + { + return this._eof_; + } + + public void setEOF(EOF node) + { + if(this._eof_ != null) + { + this._eof_.parent(null); + } + + if(node != null) + { + if(node.parent() != null) + { + node.parent().removeChild(node); + } + + node.parent(this); + } + + this._eof_ = node; + } + + @Override + void removeChild(Node child) + { + if(this._pExpression_ == child) + { + this._pExpression_ = null; + return; + } + + if(this._eof_ == child) + { + this._eof_ = null; + return; + } + + throw new RuntimeException("Not a child."); + } + + @Override + void replaceChild(Node oldChild, Node newChild) + { + if(this._pExpression_ == oldChild) + { + setPExpression((PExpression) newChild); + return; + } + + if(this._eof_ == oldChild) + { + setEOF((EOF) newChild); + return; + } + + throw new RuntimeException("Not a child."); + } + + @Override + public String toString() + { + return "" + + toString(this._pExpression_) + + toString(this._eof_); + } +}