Java Code Examples for org.eclipse.xtext.xbase.XbasePackage#XCONSTRUCTOR_CALL__TYPE_ARGUMENTS
The following examples show how to use
org.eclipse.xtext.xbase.XbasePackage#XCONSTRUCTOR_CALL__TYPE_ARGUMENTS .
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: XConstructorCallImpl.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.XCONSTRUCTOR_CALL__CONSTRUCTOR: if (resolve) return getConstructor(); return basicGetConstructor(); case XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS: return getArguments(); case XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS: return getTypeArguments(); case XbasePackage.XCONSTRUCTOR_CALL__INVALID_FEATURE_ISSUE_CODE: return getInvalidFeatureIssueCode(); case XbasePackage.XCONSTRUCTOR_CALL__VALID_FEATURE: return isValidFeature(); case XbasePackage.XCONSTRUCTOR_CALL__EXPLICIT_CONSTRUCTOR_CALL: return isExplicitConstructorCall(); case XbasePackage.XCONSTRUCTOR_CALL__ANONYMOUS_CLASS_CONSTRUCTOR_CALL: return isAnonymousClassConstructorCall(); } return super.eGet(featureID, resolve, coreType); }
Example 2
Source File: XConstructorCallImpl.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.XCONSTRUCTOR_CALL__CONSTRUCTOR: return constructor != null; case XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS: return arguments != null && !arguments.isEmpty(); case XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS: return typeArguments != null && !typeArguments.isEmpty(); case XbasePackage.XCONSTRUCTOR_CALL__INVALID_FEATURE_ISSUE_CODE: return INVALID_FEATURE_ISSUE_CODE_EDEFAULT == null ? invalidFeatureIssueCode != null : !INVALID_FEATURE_ISSUE_CODE_EDEFAULT.equals(invalidFeatureIssueCode); case XbasePackage.XCONSTRUCTOR_CALL__VALID_FEATURE: return validFeature != VALID_FEATURE_EDEFAULT; case XbasePackage.XCONSTRUCTOR_CALL__EXPLICIT_CONSTRUCTOR_CALL: return explicitConstructorCall != EXPLICIT_CONSTRUCTOR_CALL_EDEFAULT; case XbasePackage.XCONSTRUCTOR_CALL__ANONYMOUS_CLASS_CONSTRUCTOR_CALL: return anonymousClassConstructorCall != ANONYMOUS_CLASS_CONSTRUCTOR_CALL_EDEFAULT; } return super.eIsSet(featureID); }
Example 3
Source File: XConstructorCallImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<JvmTypeReference> getTypeArguments() { if (typeArguments == null) { typeArguments = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class, this, XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS); } return typeArguments; }
Example 4
Source File: XConstructorCallImpl.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 XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS: return ((InternalEList<?>)getArguments()).basicRemove(otherEnd, msgs); case XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS: return ((InternalEList<?>)getTypeArguments()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example 5
Source File: XConstructorCallImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XbasePackage.XCONSTRUCTOR_CALL__CONSTRUCTOR: setConstructor((JvmConstructor)newValue); return; case XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS: getArguments().clear(); getArguments().addAll((Collection<? extends XExpression>)newValue); return; case XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS: getTypeArguments().clear(); getTypeArguments().addAll((Collection<? extends JvmTypeReference>)newValue); return; case XbasePackage.XCONSTRUCTOR_CALL__INVALID_FEATURE_ISSUE_CODE: setInvalidFeatureIssueCode((String)newValue); return; case XbasePackage.XCONSTRUCTOR_CALL__EXPLICIT_CONSTRUCTOR_CALL: setExplicitConstructorCall((Boolean)newValue); return; case XbasePackage.XCONSTRUCTOR_CALL__ANONYMOUS_CLASS_CONSTRUCTOR_CALL: setAnonymousClassConstructorCall((Boolean)newValue); return; } super.eSet(featureID, newValue); }
Example 6
Source File: XConstructorCallImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case XbasePackage.XCONSTRUCTOR_CALL__CONSTRUCTOR: setConstructor((JvmConstructor)null); return; case XbasePackage.XCONSTRUCTOR_CALL__ARGUMENTS: getArguments().clear(); return; case XbasePackage.XCONSTRUCTOR_CALL__TYPE_ARGUMENTS: getTypeArguments().clear(); return; case XbasePackage.XCONSTRUCTOR_CALL__INVALID_FEATURE_ISSUE_CODE: setInvalidFeatureIssueCode(INVALID_FEATURE_ISSUE_CODE_EDEFAULT); return; case XbasePackage.XCONSTRUCTOR_CALL__EXPLICIT_CONSTRUCTOR_CALL: setExplicitConstructorCall(EXPLICIT_CONSTRUCTOR_CALL_EDEFAULT); return; case XbasePackage.XCONSTRUCTOR_CALL__ANONYMOUS_CLASS_CONSTRUCTOR_CALL: setAnonymousClassConstructorCall(ANONYMOUS_CLASS_CONSTRUCTOR_CALL_EDEFAULT); return; } super.eUnset(featureID); }