X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.common%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fcommon%2Fexpression%2Fnode%2FStart.java;fp=bundles%2Forg.simantics.spreadsheet.common%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fcommon%2Fexpression%2Fnode%2FStart.java;h=5fee855e8449eb81b9cc905e27524343df9d81d5;hp=19e4827526da8bd7297876f76cfddf25aa574189;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/node/Start.java b/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/node/Start.java index 19e482752..5fee855e8 100644 --- a/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/node/Start.java +++ b/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/node/Start.java @@ -1,143 +1,143 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -/* This file was generated by SableCC (http://www.sablecc.org/). */ - -package org.simantics.spreadsheet.common.expression.node; - -import org.simantics.spreadsheet.common.expression.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_); - } -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +/* This file was generated by SableCC (http://www.sablecc.org/). */ + +package org.simantics.spreadsheet.common.expression.node; + +import org.simantics.spreadsheet.common.expression.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_); + } +}