/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: if (resolve) return getType(); return basicGetType(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public JvmType getType() { if (type != null && type.eIsProxy()) { InternalEObject oldType = (InternalEObject)type; type = (JvmType)eResolveProxy(oldType); if (type != oldType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE, oldType, type)); } } return type; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(JvmType newType) { JvmType oldType = type; type = newType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE, oldType, type)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: setType((JvmType)null); return; } super.eUnset(featureID); }
/** * {@inheritDoc} * * Returns the value of the 'Type' reference. If there is no type set, * a reference to <code>java.lang.Object</code> is assumed. */ @Override public JvmType getType() { if (type == null) { JvmGenericType objectType = TypesFactory.eINSTANCE.createJvmGenericType(); String objectClassName = Object.class.getName(); ((InternalEObject) objectType).eSetProxyURI(URIHelperConstants.OBJECTS_URI.appendSegment(objectClassName).appendFragment(objectClassName)); setType(objectType); } return super.getType(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(JvmType newType) { JvmType oldType = type; type = newType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE, oldType, type)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: setType((JvmType)newValue); return; } super.eSet(featureID, newValue); }
/** * {@inheritDoc} * * Returns the value of the 'Type' reference. If there is no type set, * a reference to <code>java.lang.Object</code> is assumed. */ @Override public JvmType getType() { if (type == null) { JvmGenericType objectType = TypesFactory.eINSTANCE.createJvmGenericType(); ((InternalEObject) objectType).eSetProxyURI(new ClassURIHelper().getFullURI(Object.class)); setType(objectType); } return super.getType(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public JvmType getType() { if (type != null && type.eIsProxy()) { InternalEObject oldType = (InternalEObject)type; type = (JvmType)eResolveProxy(oldType); if (type != oldType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE, oldType, type)); } } return type; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: if (resolve) return getType(); return basicGetType(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: setType((JvmType)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesPackage.JVM_ANY_TYPE_REFERENCE__TYPE: setType((JvmType)null); return; } super.eUnset(featureID); }