|
|
@@ -1,197 +0,0 @@
|
|
|
-/**
|
|
|
- * <copyright>
|
|
|
- * </copyright>
|
|
|
- *
|
|
|
-
|
|
|
- */
|
|
|
-package org.yakindu.sct.model.stext.stext.impl;
|
|
|
-
|
|
|
-import org.eclipse.emf.common.notify.Notification;
|
|
|
-import org.eclipse.emf.common.notify.NotificationChain;
|
|
|
-
|
|
|
-import org.eclipse.emf.ecore.EClass;
|
|
|
-import org.eclipse.emf.ecore.InternalEObject;
|
|
|
-
|
|
|
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|
|
-
|
|
|
-import org.yakindu.sct.model.stext.stext.Expression;
|
|
|
-import org.yakindu.sct.model.stext.stext.OperationCallStatement;
|
|
|
-import org.yakindu.sct.model.stext.stext.StextPackage;
|
|
|
-
|
|
|
-/**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * An implementation of the model object '<em><b>Operation Call Statement</b></em>'.
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * <p>
|
|
|
- * The following features are implemented:
|
|
|
- * <ul>
|
|
|
- * <li>{@link org.yakindu.sct.model.stext.stext.impl.OperationCallStatementImpl#getCall <em>Call</em>}</li>
|
|
|
- * </ul>
|
|
|
- * </p>
|
|
|
- *
|
|
|
- * @generated
|
|
|
- */
|
|
|
-public class OperationCallStatementImpl extends StatementImpl implements OperationCallStatement
|
|
|
-{
|
|
|
- /**
|
|
|
- * The cached value of the '{@link #getCall() <em>Call</em>}' containment reference.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @see #getCall()
|
|
|
- * @generated
|
|
|
- * @ordered
|
|
|
- */
|
|
|
- protected Expression call;
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- protected OperationCallStatementImpl()
|
|
|
- {
|
|
|
- super();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- protected EClass eStaticClass()
|
|
|
- {
|
|
|
- return StextPackage.Literals.OPERATION_CALL_STATEMENT;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public Expression getCall()
|
|
|
- {
|
|
|
- return call;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public NotificationChain basicSetCall(Expression newCall, NotificationChain msgs)
|
|
|
- {
|
|
|
- Expression oldCall = call;
|
|
|
- call = newCall;
|
|
|
- if (eNotificationRequired())
|
|
|
- {
|
|
|
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StextPackage.OPERATION_CALL_STATEMENT__CALL, oldCall, newCall);
|
|
|
- if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
- }
|
|
|
- return msgs;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public void setCall(Expression newCall)
|
|
|
- {
|
|
|
- if (newCall != call)
|
|
|
- {
|
|
|
- NotificationChain msgs = null;
|
|
|
- if (call != null)
|
|
|
- msgs = ((InternalEObject)call).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - StextPackage.OPERATION_CALL_STATEMENT__CALL, null, msgs);
|
|
|
- if (newCall != null)
|
|
|
- msgs = ((InternalEObject)newCall).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - StextPackage.OPERATION_CALL_STATEMENT__CALL, null, msgs);
|
|
|
- msgs = basicSetCall(newCall, msgs);
|
|
|
- if (msgs != null) msgs.dispatch();
|
|
|
- }
|
|
|
- else if (eNotificationRequired())
|
|
|
- eNotify(new ENotificationImpl(this, Notification.SET, StextPackage.OPERATION_CALL_STATEMENT__CALL, newCall, newCall));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
|
|
- {
|
|
|
- switch (featureID)
|
|
|
- {
|
|
|
- case StextPackage.OPERATION_CALL_STATEMENT__CALL:
|
|
|
- return basicSetCall(null, msgs);
|
|
|
- }
|
|
|
- return super.eInverseRemove(otherEnd, featureID, msgs);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- public Object eGet(int featureID, boolean resolve, boolean coreType)
|
|
|
- {
|
|
|
- switch (featureID)
|
|
|
- {
|
|
|
- case StextPackage.OPERATION_CALL_STATEMENT__CALL:
|
|
|
- return getCall();
|
|
|
- }
|
|
|
- return super.eGet(featureID, resolve, coreType);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- public void eSet(int featureID, Object newValue)
|
|
|
- {
|
|
|
- switch (featureID)
|
|
|
- {
|
|
|
- case StextPackage.OPERATION_CALL_STATEMENT__CALL:
|
|
|
- setCall((Expression)newValue);
|
|
|
- return;
|
|
|
- }
|
|
|
- super.eSet(featureID, newValue);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- public void eUnset(int featureID)
|
|
|
- {
|
|
|
- switch (featureID)
|
|
|
- {
|
|
|
- case StextPackage.OPERATION_CALL_STATEMENT__CALL:
|
|
|
- setCall((Expression)null);
|
|
|
- return;
|
|
|
- }
|
|
|
- super.eUnset(featureID);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean eIsSet(int featureID)
|
|
|
- {
|
|
|
- switch (featureID)
|
|
|
- {
|
|
|
- case StextPackage.OPERATION_CALL_STATEMENT__CALL:
|
|
|
- return call != null;
|
|
|
- }
|
|
|
- return super.eIsSet(featureID);
|
|
|
- }
|
|
|
-
|
|
|
-} //OperationCallStatementImpl
|