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/BasicInterpretationImpl.java | 318 --------------------- 1 file changed, 318 deletions(-) delete mode 100644 Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java') diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java deleted file mode 100644 index aef515f6..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BasicInterpretationImpl.java +++ /dev/null @@ -1,318 +0,0 @@ -/** - * generated by Xtext 2.18.0.M3 - */ -package org.eclipse.viatra.solver.language.solverLanguage.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.viatra.solver.language.solverLanguage.BasicInterpretation; -import org.eclipse.viatra.solver.language.solverLanguage.ComplexObject; -import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; -import org.eclipse.viatra.solver.language.solverLanguage.Symbol; -import org.eclipse.viatra.solver.language.solverLanguage.TruthValue; - -/** - * - * An implementation of the model object 'Basic Interpretation'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class BasicInterpretationImpl extends InterpretationImpl implements BasicInterpretation -{ - /** - * The cached value of the '{@link #getSymbol() Symbol}' containment reference. - * - * - * @see #getSymbol() - * @generated - * @ordered - */ - protected Symbol symbol; - - /** - * The cached value of the '{@link #getObjects() Objects}' containment reference list. - * - * - * @see #getObjects() - * @generated - * @ordered - */ - protected EList objects; - - /** - * The cached value of the '{@link #getValue() Value}' containment reference. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected TruthValue value; - - /** - * - * - * @generated - */ - protected BasicInterpretationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return SolverLanguagePackage.Literals.BASIC_INTERPRETATION; - } - - /** - * - * - * @generated - */ - @Override - public Symbol getSymbol() - { - return symbol; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSymbol(Symbol newSymbol, NotificationChain msgs) - { - Symbol oldSymbol = symbol; - symbol = newSymbol; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSymbol(Symbol newSymbol) - { - if (newSymbol != symbol) - { - NotificationChain msgs = null; - if (symbol != null) - msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, null, msgs); - if (newSymbol != null) - msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, null, msgs); - msgs = basicSetSymbol(newSymbol, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); - } - - /** - * - * - * @generated - */ - @Override - public EList getObjects() - { - if (objects == null) - { - objects = new EObjectContainmentEList(ComplexObject.class, this, SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS); - } - return objects; - } - - /** - * - * - * @generated - */ - @Override - public TruthValue getValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValue(TruthValue newValue, NotificationChain msgs) - { - TruthValue oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, oldValue, newValue); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setValue(TruthValue newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, null, msgs); - msgs = basicSetValue(newValue, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BASIC_INTERPRETATION__VALUE, newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: - return basicSetSymbol(null, msgs); - case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: - return ((InternalEList)getObjects()).basicRemove(otherEnd, msgs); - case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: - return basicSetValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: - return getSymbol(); - case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: - return getObjects(); - case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: - setSymbol((Symbol)newValue); - return; - case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: - getObjects().clear(); - getObjects().addAll((Collection)newValue); - return; - case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: - setValue((TruthValue)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: - setSymbol((Symbol)null); - return; - case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: - getObjects().clear(); - return; - case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: - setValue((TruthValue)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case SolverLanguagePackage.BASIC_INTERPRETATION__SYMBOL: - return symbol != null; - case SolverLanguagePackage.BASIC_INTERPRETATION__OBJECTS: - return objects != null && !objects.isEmpty(); - case SolverLanguagePackage.BASIC_INTERPRETATION__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - -} //BasicInterpretationImpl -- cgit v1.2.3-70-g09d2