From 419e76265ecbdf65e960e0624be006d31ed1e191 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 8 May 2020 18:28:19 +0200 Subject: Update solver language grammar First version, still needs TokenSource and Linker to work. --- .../impl/DefaultInterpretationImpl.java | 196 --------------------- 1 file changed, 196 deletions(-) delete mode 100644 Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java') diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java deleted file mode 100644 index eb2835a0..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultInterpretationImpl.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * generated by Xtext 2.18.0.M3 - */ -package org.eclipse.viatra.solver.language.solverLanguage.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.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; -import org.eclipse.viatra.solver.language.solverLanguage.DefaultInterpretation; -import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; - -/** - * - * An implementation of the model object 'Default Interpretation'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class DefaultInterpretationImpl extends InterpretationImpl implements DefaultInterpretation -{ - /** - * The cached value of the '{@link #getInterpretation() Interpretation}' containment reference. - * - * - * @see #getInterpretation() - * @generated - * @ordered - */ - protected BasicInterpretation interpretation; - - /** - * - * - * @generated - */ - protected DefaultInterpretationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return SolverLanguagePackage.Literals.DEFAULT_INTERPRETATION; - } - - /** - * - * - * @generated - */ - @Override - public BasicInterpretation getInterpretation() - { - return interpretation; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetInterpretation(BasicInterpretation newInterpretation, NotificationChain msgs) - { - BasicInterpretation oldInterpretation = interpretation; - interpretation = newInterpretation; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, oldInterpretation, newInterpretation); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setInterpretation(BasicInterpretation newInterpretation) - { - if (newInterpretation != interpretation) - { - NotificationChain msgs = null; - if (interpretation != null) - msgs = ((InternalEObject)interpretation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, null, msgs); - if (newInterpretation != null) - msgs = ((InternalEObject)newInterpretation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, null, msgs); - msgs = basicSetInterpretation(newInterpretation, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION, newInterpretation, newInterpretation)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: - return basicSetInterpretation(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: - return getInterpretation(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: - setInterpretation((BasicInterpretation)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: - setInterpretation((BasicInterpretation)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case SolverLanguagePackage.DEFAULT_INTERPRETATION__INTERPRETATION: - return interpretation != null; - } - return super.eIsSet(featureID); - } - -} //DefaultInterpretationImpl -- cgit v1.2.3-70-g09d2