/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setArrayType(JvmArrayType newArrayType) { if (newArrayType != arrayType) { NotificationChain msgs = null; if (arrayType != null) msgs = ((InternalEObject)arrayType).eInverseRemove(this, TypesPackage.JVM_ARRAY_TYPE__COMPONENT_TYPE, JvmArrayType.class, msgs); if (newArrayType != null) msgs = ((InternalEObject)newArrayType).eInverseAdd(this, TypesPackage.JVM_ARRAY_TYPE__COMPONENT_TYPE, JvmArrayType.class, msgs); msgs = basicSetArrayType(newArrayType, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE, newArrayType, newArrayType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setArrayType(JvmArrayType newArrayType) { if (newArrayType != arrayType) { NotificationChain msgs = null; if (arrayType != null) msgs = ((InternalEObject)arrayType).eInverseRemove(this, TypesPackage.JVM_ARRAY_TYPE__COMPONENT_TYPE, JvmArrayType.class, msgs); if (newArrayType != null) msgs = ((InternalEObject)newArrayType).eInverseAdd(this, TypesPackage.JVM_ARRAY_TYPE__COMPONENT_TYPE, JvmArrayType.class, msgs); msgs = basicSetArrayType(newArrayType, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE, newArrayType, newArrayType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: if (arrayType != null) msgs = ((InternalEObject)arrayType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE, null, msgs); return basicSetArrayType((JvmArrayType)otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getMembers()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: if (arrayType != null) msgs = ((InternalEObject)arrayType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE, null, msgs); return basicSetArrayType((JvmArrayType)otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getMembers()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: return basicSetArrayType(null, msgs); case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES: return ((InternalEList<?>)getSuperTypes()).basicRemove(otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_DECLARED_TYPE__ARRAY_TYPE: return basicSetArrayType(null, msgs); case TypesPackage.JVM_DECLARED_TYPE__SUPER_TYPES: return ((InternalEList<?>)getSuperTypes()).basicRemove(otherEnd, msgs); case TypesPackage.JVM_DECLARED_TYPE__MEMBERS: return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }