Java Code Examples for org.eclipse.xtext.common.types.TypesPackage#JVM_TYPE_PARAMETER__DECLARATOR
The following examples show how to use
org.eclipse.xtext.common.types.TypesPackage#JVM_TYPE_PARAMETER__DECLARATOR .
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: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setDeclarator(JvmTypeParameterDeclarator newDeclarator) { if (newDeclarator != eInternalContainer() || (eContainerFeatureID() != TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR && newDeclarator != null)) { if (EcoreUtil.isAncestor(this, newDeclarator)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newDeclarator != null) msgs = ((InternalEObject)newDeclarator).eInverseAdd(this, TypesPackage.JVM_TYPE_PARAMETER_DECLARATOR__TYPE_PARAMETERS, JvmTypeParameterDeclarator.class, msgs); msgs = basicSetDeclarator(newDeclarator, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR, newDeclarator, newDeclarator)); }
Example 2
Source File: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getConstraints()).basicAdd(otherEnd, msgs); case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetDeclarator((JvmTypeParameterDeclarator)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); }
Example 3
Source File: JvmTypeParameterImpl.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 TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: getConstraints().clear(); getConstraints().addAll((Collection<? extends JvmTypeConstraint>)newValue); return; case TypesPackage.JVM_TYPE_PARAMETER__NAME: setName((String)newValue); return; case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: setDeclarator((JvmTypeParameterDeclarator)newValue); return; } super.eSet(featureID, newValue); }
Example 4
Source File: JvmTypeParameterImpl.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 TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: getConstraints().clear(); return; case TypesPackage.JVM_TYPE_PARAMETER__NAME: setName(NAME_EDEFAULT); return; case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: setDeclarator((JvmTypeParameterDeclarator)null); return; } super.eUnset(featureID); }
Example 5
Source File: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public JvmTypeParameterDeclarator getDeclarator() { if (eContainerFeatureID() != TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR) return null; return (JvmTypeParameterDeclarator)eInternalContainer(); }
Example 6
Source File: JvmTypeParameterImpl.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 TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: return ((InternalEList<?>)getConstraints()).basicRemove(otherEnd, msgs); case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: return basicSetDeclarator(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
Example 7
Source File: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { switch (eContainerFeatureID()) { case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: return eInternalContainer().eInverseRemove(this, TypesPackage.JVM_TYPE_PARAMETER_DECLARATOR__TYPE_PARAMETERS, JvmTypeParameterDeclarator.class, msgs); } return super.eBasicRemoveFromContainerFeature(msgs); }
Example 8
Source File: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: return getConstraints(); case TypesPackage.JVM_TYPE_PARAMETER__NAME: return getName(); case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: return getDeclarator(); } return super.eGet(featureID, resolve, coreType); }
Example 9
Source File: JvmTypeParameterImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TypesPackage.JVM_TYPE_PARAMETER__CONSTRAINTS: return constraints != null && !constraints.isEmpty(); case TypesPackage.JVM_TYPE_PARAMETER__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR: return getDeclarator() != null; } return super.eIsSet(featureID); }
Example 10
Source File: JvmGenericTypeImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<JvmTypeParameter> getTypeParameters() { if (typeParameters == null) { typeParameters = new EObjectContainmentWithInverseEList<JvmTypeParameter>(JvmTypeParameter.class, this, TypesPackage.JVM_GENERIC_TYPE__TYPE_PARAMETERS, TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR); } return typeParameters; }
Example 11
Source File: JvmTypeParameterDeclaratorImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<JvmTypeParameter> getTypeParameters() { if (typeParameters == null) { typeParameters = new EObjectContainmentWithInverseEList<JvmTypeParameter>(JvmTypeParameter.class, this, TypesPackage.JVM_TYPE_PARAMETER_DECLARATOR__TYPE_PARAMETERS, TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR); } return typeParameters; }
Example 12
Source File: JvmExecutableImpl.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EList<JvmTypeParameter> getTypeParameters() { if (typeParameters == null) { typeParameters = new EObjectContainmentWithInverseEList<JvmTypeParameter>(JvmTypeParameter.class, this, TypesPackage.JVM_EXECUTABLE__TYPE_PARAMETERS, TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR); } return typeParameters; }