Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java')
-rw-r--r--plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java236
1 files changed, 235 insertions, 1 deletions
diff --git a/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java b/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java
index 434382e8..0e6482f9 100644
--- a/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java
+++ b/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/RelationalExpressionNodeImpl.java
@@ -2,12 +2,17 @@
* <copyright>
* </copyright>
*
- * $Id: RelationalExpressionNodeImpl.java,v 1.1 2008/03/06 08:55:16 jkohnlein Exp $
+ * $Id: RelationalExpressionNodeImpl.java,v 1.2 2008/03/06 15:25:17 jkohnlein Exp $
*/
package org.eclipse.xpand3.internal.parser.xpand3node.impl;
+import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.tmf.common.node.CompositeNode;
+import org.eclipse.tmf.common.node.LeafNode;
import org.eclipse.tmf.common.node.impl.CompositeNodeImpl;
import org.eclipse.xpand3.internal.parser.xpand3node.RelationalExpressionNode;
@@ -18,12 +23,46 @@ import org.eclipse.xpand3.internal.parser.xpand3node.Xpand3nodePackage;
* An implementation of the model object '<em><b>Relational Expression Node</b></em>'.
* <!-- end-user-doc -->
* <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.xpand3.internal.parser.xpand3node.impl.RelationalExpressionNodeImpl#getLeftOperand <em>Left Operand</em>}</li>
+ * <li>{@link org.eclipse.xpand3.internal.parser.xpand3node.impl.RelationalExpressionNodeImpl#getOperator <em>Operator</em>}</li>
+ * <li>{@link org.eclipse.xpand3.internal.parser.xpand3node.impl.RelationalExpressionNodeImpl#getRightOperand <em>Right Operand</em>}</li>
+ * </ul>
* </p>
*
* @generated
*/
public class RelationalExpressionNodeImpl extends CompositeNodeImpl implements RelationalExpressionNode {
/**
+ * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLeftOperand()
+ * @generated
+ * @ordered
+ */
+ protected CompositeNode leftOperand;
+ /**
+ * The cached value of the '{@link #getOperator() <em>Operator</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOperator()
+ * @generated
+ * @ordered
+ */
+ protected CompositeNode operator;
+ /**
+ * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRightOperand()
+ * @generated
+ * @ordered
+ */
+ protected CompositeNode rightOperand;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -42,4 +81,199 @@ public class RelationalExpressionNodeImpl extends CompositeNodeImpl implements R
return Xpand3nodePackage.Literals.RELATIONAL_EXPRESSION_NODE;
}
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode getRightOperand() {
+ if (rightOperand != null && rightOperand.eIsProxy()) {
+ InternalEObject oldRightOperand = (InternalEObject)rightOperand;
+ rightOperand = (CompositeNode)eResolveProxy(oldRightOperand);
+ if (rightOperand != oldRightOperand) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND, oldRightOperand, rightOperand));
+ }
+ }
+ return rightOperand;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode basicGetRightOperand() {
+ return rightOperand;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRightOperand(CompositeNode newRightOperand) {
+ CompositeNode oldRightOperand = rightOperand;
+ rightOperand = newRightOperand;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND, oldRightOperand, rightOperand));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode getOperator() {
+ if (operator != null && operator.eIsProxy()) {
+ InternalEObject oldOperator = (InternalEObject)operator;
+ operator = (CompositeNode)eResolveProxy(oldOperator);
+ if (operator != oldOperator) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR, oldOperator, operator));
+ }
+ }
+ return operator;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode basicGetOperator() {
+ return operator;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOperator(CompositeNode newOperator) {
+ CompositeNode oldOperator = operator;
+ operator = newOperator;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR, oldOperator, operator));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode getLeftOperand() {
+ if (leftOperand != null && leftOperand.eIsProxy()) {
+ InternalEObject oldLeftOperand = (InternalEObject)leftOperand;
+ leftOperand = (CompositeNode)eResolveProxy(oldLeftOperand);
+ if (leftOperand != oldLeftOperand) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND, oldLeftOperand, leftOperand));
+ }
+ }
+ return leftOperand;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode basicGetLeftOperand() {
+ return leftOperand;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLeftOperand(CompositeNode newLeftOperand) {
+ CompositeNode oldLeftOperand = leftOperand;
+ leftOperand = newLeftOperand;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND, oldLeftOperand, leftOperand));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND:
+ if (resolve) return getLeftOperand();
+ return basicGetLeftOperand();
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR:
+ if (resolve) return getOperator();
+ return basicGetOperator();
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND:
+ if (resolve) return getRightOperand();
+ return basicGetRightOperand();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND:
+ setLeftOperand((CompositeNode)newValue);
+ return;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR:
+ setOperator((CompositeNode)newValue);
+ return;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND:
+ setRightOperand((CompositeNode)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND:
+ setLeftOperand((CompositeNode)null);
+ return;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR:
+ setOperator((CompositeNode)null);
+ return;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND:
+ setRightOperand((CompositeNode)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__LEFT_OPERAND:
+ return leftOperand != null;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__OPERATOR:
+ return operator != null;
+ case Xpand3nodePackage.RELATIONAL_EXPRESSION_NODE__RIGHT_OPERAND:
+ return rightOperand != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
} //RelationalExpressionNodeImpl

Back to the top