diff options
Diffstat (limited to 'plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/staticTypesystem/impl/DeclaredTypeImpl.java')
-rw-r--r-- | plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/staticTypesystem/impl/DeclaredTypeImpl.java | 392 |
1 files changed, 0 insertions, 392 deletions
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/staticTypesystem/impl/DeclaredTypeImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/staticTypesystem/impl/DeclaredTypeImpl.java deleted file mode 100644 index cb00bf3d..00000000 --- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/staticTypesystem/impl/DeclaredTypeImpl.java +++ /dev/null @@ -1,392 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: DeclaredTypeImpl.java,v 1.6 2008/03/13 11:37:06 sefftinge Exp $ - */ -package org.eclipse.xpand3.staticTypesystem.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.xpand3.staticTypesystem.AbstractTypeReference; -import org.eclipse.xpand3.staticTypesystem.DeclaredProperty; -import org.eclipse.xpand3.staticTypesystem.DeclaredStaticProperty; -import org.eclipse.xpand3.staticTypesystem.DeclaredType; -import org.eclipse.xpand3.staticTypesystem.DeclaredTypeParameter; -import org.eclipse.xpand3.staticTypesystem.StaticTypesystemPackage; - -import org.eclipse.xtend.backend.common.BackendType; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Declared Type</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#getStaticProperties <em>Static Properties</em>}</li> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#getProperties <em>Properties</em>}</li> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#getDeclaredTypeParameters <em>Declared Type Parameters</em>}</li> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#getSuperTypes <em>Super Types</em>}</li> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#getUniqueID <em>Unique ID</em>}</li> - * <li>{@link org.eclipse.xpand3.staticTypesystem.impl.DeclaredTypeImpl#isIsAbstract <em>Is Abstract</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class DeclaredTypeImpl extends AbstractNamedElementImpl implements DeclaredType { - /** - * The cached value of the '{@link #getStaticProperties() <em>Static Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStaticProperties() - * @generated - * @ordered - */ - protected EList<DeclaredStaticProperty> staticProperties; - - /** - * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getProperties() - * @generated - * @ordered - */ - protected EList<DeclaredProperty> properties; - - /** - * The cached value of the '{@link #getDeclaredTypeParameters() <em>Declared Type Parameters</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDeclaredTypeParameters() - * @generated - * @ordered - */ - protected EList<DeclaredTypeParameter> declaredTypeParameters; - - /** - * The cached value of the '{@link #getSuperTypes() <em>Super Types</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSuperTypes() - * @generated - * @ordered - */ - protected EList<AbstractTypeReference> superTypes; - - /** - * The default value of the '{@link #getUniqueID() <em>Unique ID</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUniqueID() - * @generated - * @ordered - */ - protected static final String UNIQUE_ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getUniqueID() <em>Unique ID</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUniqueID() - * @generated - * @ordered - */ - protected String uniqueID = UNIQUE_ID_EDEFAULT; - - /** - * The default value of the '{@link #isIsAbstract() <em>Is Abstract</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isIsAbstract() - * @generated - * @ordered - */ - protected static final boolean IS_ABSTRACT_EDEFAULT = false; - - /** - * The cached value of the '{@link #isIsAbstract() <em>Is Abstract</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isIsAbstract() - * @generated - * @ordered - */ - protected boolean isAbstract = IS_ABSTRACT_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DeclaredTypeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return StaticTypesystemPackage.Literals.DECLARED_TYPE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<DeclaredStaticProperty> getStaticProperties() { - if (staticProperties == null) { - staticProperties = new EObjectContainmentEList<DeclaredStaticProperty>(DeclaredStaticProperty.class, this, StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES); - } - return staticProperties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<DeclaredProperty> getProperties() { - if (properties == null) { - properties = new EObjectContainmentEList<DeclaredProperty>(DeclaredProperty.class, this, StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES); - } - return properties; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<DeclaredTypeParameter> getDeclaredTypeParameters() { - if (declaredTypeParameters == null) { - declaredTypeParameters = new EObjectContainmentEList<DeclaredTypeParameter>(DeclaredTypeParameter.class, this, StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS); - } - return declaredTypeParameters; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<AbstractTypeReference> getSuperTypes() { - if (superTypes == null) { - superTypes = new EObjectContainmentEList<AbstractTypeReference>(AbstractTypeReference.class, this, StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES); - } - return superTypes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getUniqueID() { - return uniqueID; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setUniqueID(String newUniqueID) { - String oldUniqueID = uniqueID; - uniqueID = newUniqueID; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StaticTypesystemPackage.DECLARED_TYPE__UNIQUE_ID, oldUniqueID, uniqueID)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isIsAbstract() { - return isAbstract; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setIsAbstract(boolean newIsAbstract) { - boolean oldIsAbstract = isAbstract; - isAbstract = newIsAbstract; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StaticTypesystemPackage.DECLARED_TYPE__IS_ABSTRACT, oldIsAbstract, isAbstract)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES: - return ((InternalEList<?>)getStaticProperties()).basicRemove(otherEnd, msgs); - case StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES: - return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); - case StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS: - return ((InternalEList<?>)getDeclaredTypeParameters()).basicRemove(otherEnd, msgs); - case StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES: - return ((InternalEList<?>)getSuperTypes()).basicRemove(otherEnd, 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 StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES: - return getStaticProperties(); - case StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES: - return getProperties(); - case StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS: - return getDeclaredTypeParameters(); - case StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES: - return getSuperTypes(); - case StaticTypesystemPackage.DECLARED_TYPE__UNIQUE_ID: - return getUniqueID(); - case StaticTypesystemPackage.DECLARED_TYPE__IS_ABSTRACT: - return isIsAbstract() ? Boolean.TRUE : Boolean.FALSE; - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES: - getStaticProperties().clear(); - getStaticProperties().addAll((Collection<? extends DeclaredStaticProperty>)newValue); - return; - case StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES: - getProperties().clear(); - getProperties().addAll((Collection<? extends DeclaredProperty>)newValue); - return; - case StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS: - getDeclaredTypeParameters().clear(); - getDeclaredTypeParameters().addAll((Collection<? extends DeclaredTypeParameter>)newValue); - return; - case StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES: - getSuperTypes().clear(); - getSuperTypes().addAll((Collection<? extends AbstractTypeReference>)newValue); - return; - case StaticTypesystemPackage.DECLARED_TYPE__UNIQUE_ID: - setUniqueID((String)newValue); - return; - case StaticTypesystemPackage.DECLARED_TYPE__IS_ABSTRACT: - setIsAbstract(((Boolean)newValue).booleanValue()); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES: - getStaticProperties().clear(); - return; - case StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES: - getProperties().clear(); - return; - case StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS: - getDeclaredTypeParameters().clear(); - return; - case StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES: - getSuperTypes().clear(); - return; - case StaticTypesystemPackage.DECLARED_TYPE__UNIQUE_ID: - setUniqueID(UNIQUE_ID_EDEFAULT); - return; - case StaticTypesystemPackage.DECLARED_TYPE__IS_ABSTRACT: - setIsAbstract(IS_ABSTRACT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case StaticTypesystemPackage.DECLARED_TYPE__STATIC_PROPERTIES: - return staticProperties != null && !staticProperties.isEmpty(); - case StaticTypesystemPackage.DECLARED_TYPE__PROPERTIES: - return properties != null && !properties.isEmpty(); - case StaticTypesystemPackage.DECLARED_TYPE__DECLARED_TYPE_PARAMETERS: - return declaredTypeParameters != null && !declaredTypeParameters.isEmpty(); - case StaticTypesystemPackage.DECLARED_TYPE__SUPER_TYPES: - return superTypes != null && !superTypes.isEmpty(); - case StaticTypesystemPackage.DECLARED_TYPE__UNIQUE_ID: - return UNIQUE_ID_EDEFAULT == null ? uniqueID != null : !UNIQUE_ID_EDEFAULT.equals(uniqueID); - case StaticTypesystemPackage.DECLARED_TYPE__IS_ABSTRACT: - return isAbstract != IS_ABSTRACT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (uniqueID: "); - result.append(uniqueID); - result.append(", isAbstract: "); - result.append(isAbstract); - result.append(')'); - return result.toString(); - } - -} //DeclaredTypeImpl |