Java Code Examples for org.eclipse.xtext.xtype.XtypePackage#XFUNCTION_TYPE_REF__RETURN_TYPE
The following examples show how to use
org.eclipse.xtext.xtype.XtypePackage#XFUNCTION_TYPE_REF__RETURN_TYPE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES: return getParamTypes(); case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE: return getReturnType(); case XtypePackage.XFUNCTION_TYPE_REF__TYPE: if (resolve) return getType(); return basicGetType(); case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT: return isInstanceContext(); } return super.eGet(featureID, resolve, coreType); }
Example 2
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES: getParamTypes().clear(); getParamTypes().addAll((Collection<? extends JvmTypeReference>)newValue); return; case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE: setReturnType((JvmTypeReference)newValue); return; case XtypePackage.XFUNCTION_TYPE_REF__TYPE: setType((JvmType)newValue); return; case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT: setInstanceContext((Boolean)newValue); return; } super.eSet(featureID, newValue); }
Example 3
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES: getParamTypes().clear(); return; case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE: setReturnType((JvmTypeReference)null); return; case XtypePackage.XFUNCTION_TYPE_REF__TYPE: setType((JvmType)null); return; case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT: setInstanceContext(INSTANCE_CONTEXT_EDEFAULT); return; } super.eUnset(featureID); }
Example 4
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES: return paramTypes != null && !paramTypes.isEmpty(); case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE: return returnType != null; case XtypePackage.XFUNCTION_TYPE_REF__TYPE: return type != null; case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT: return instanceContext != INSTANCE_CONTEXT_EDEFAULT; } return super.eIsSet(featureID); }
Example 5
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetReturnType(JvmTypeReference newReturnType, NotificationChain msgs) { JvmTypeReference oldReturnType = returnType; returnType = newReturnType; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE, oldReturnType, newReturnType); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
Example 6
Source File: XFunctionTypeRefImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case XtypePackage.XFUNCTION_TYPE_REF__PARAM_TYPES: return ((InternalEList<?>)getParamTypes()).basicRemove(otherEnd, msgs); case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE: return basicSetReturnType(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }