Java Code Examples for org.eclipse.xtext.xbase.XbasePackage#XSWITCH_EXPRESSION__CASES
The following examples show how to use
org.eclipse.xtext.xbase.XbasePackage#XSWITCH_EXPRESSION__CASES .
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: XSwitchExpressionImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case XbasePackage.XSWITCH_EXPRESSION__SWITCH: return basicSetSwitch(null, msgs); case XbasePackage.XSWITCH_EXPRESSION__CASES: return ((InternalEList<?>)getCases()).basicRemove(otherEnd, msgs); case XbasePackage.XSWITCH_EXPRESSION__DEFAULT: return basicSetDefault(null, msgs); case XbasePackage.XSWITCH_EXPRESSION__DECLARED_PARAM: return basicSetDeclaredParam(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example 2
Source File: XSwitchExpressionImpl.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 XbasePackage.XSWITCH_EXPRESSION__SWITCH: return getSwitch(); case XbasePackage.XSWITCH_EXPRESSION__CASES: return getCases(); case XbasePackage.XSWITCH_EXPRESSION__DEFAULT: return getDefault(); case XbasePackage.XSWITCH_EXPRESSION__DECLARED_PARAM: return getDeclaredParam(); } return super.eGet(featureID, resolve, coreType); }
Example 3
Source File: XSwitchExpressionImpl.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 XbasePackage.XSWITCH_EXPRESSION__SWITCH: setSwitch((XExpression)newValue); return; case XbasePackage.XSWITCH_EXPRESSION__CASES: getCases().clear(); getCases().addAll((Collection<? extends XCasePart>)newValue); return; case XbasePackage.XSWITCH_EXPRESSION__DEFAULT: setDefault((XExpression)newValue); return; case XbasePackage.XSWITCH_EXPRESSION__DECLARED_PARAM: setDeclaredParam((JvmFormalParameter)newValue); return; } super.eSet(featureID, newValue); }
Example 4
Source File: XSwitchExpressionImpl.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 XbasePackage.XSWITCH_EXPRESSION__SWITCH: setSwitch((XExpression)null); return; case XbasePackage.XSWITCH_EXPRESSION__CASES: getCases().clear(); return; case XbasePackage.XSWITCH_EXPRESSION__DEFAULT: setDefault((XExpression)null); return; case XbasePackage.XSWITCH_EXPRESSION__DECLARED_PARAM: setDeclaredParam((JvmFormalParameter)null); return; } super.eUnset(featureID); }
Example 5
Source File: XSwitchExpressionImpl.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 XbasePackage.XSWITCH_EXPRESSION__SWITCH: return switch_ != null; case XbasePackage.XSWITCH_EXPRESSION__CASES: return cases != null && !cases.isEmpty(); case XbasePackage.XSWITCH_EXPRESSION__DEFAULT: return default_ != null; case XbasePackage.XSWITCH_EXPRESSION__DECLARED_PARAM: return declaredParam != null; } return super.eIsSet(featureID); }
Example 6
Source File: XSwitchExpressionImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<XCasePart> getCases() { if (cases == null) { cases = new EObjectContainmentEList<XCasePart>(XCasePart.class, this, XbasePackage.XSWITCH_EXPRESSION__CASES); } return cases; }