当前位置: 首页>>代码示例>>Java>>正文


Java TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR属性代码示例

本文整理汇总了Java中org.eclipse.xtext.common.types.TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR属性的典型用法代码示例。如果您正苦于以下问题:Java TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR属性的具体用法?Java TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR怎么用?Java TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.xtext.common.types.TypesPackage的用法示例。


在下文中一共展示了TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setDeclarator

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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));
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:22,代码来源:JvmTypeParameterImpl.java

示例2: eInverseAdd

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:20,代码来源:JvmTypeParameterImpl.java

示例3: eSet

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:24,代码来源:JvmTypeParameterImpl.java

示例4: eUnset

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:22,代码来源:JvmTypeParameterImpl.java

示例5: eInverseRemove

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:17,代码来源:JvmTypeParameterImpl.java

示例6: eBasicRemoveFromContainerFeature

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:15,代码来源:JvmTypeParameterImpl.java

示例7: eGet

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:19,代码来源:JvmTypeParameterImpl.java

示例8: eIsSet

/**
 * <!-- 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);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:19,代码来源:JvmTypeParameterImpl.java

示例9: getTypeParameters

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:13,代码来源:JvmGenericTypeImpl.java

示例10: getTypeParameters

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:13,代码来源:JvmTypeParameterDeclaratorImpl.java

示例11: getTypeParameters

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:13,代码来源:JvmExecutableImpl.java

示例12: getDeclarator

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public JvmTypeParameterDeclarator getDeclarator()
{
	if (eContainerFeatureID() != TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR) return null;
	return (JvmTypeParameterDeclarator)eInternalContainer();
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:10,代码来源:JvmTypeParameterImpl.java


注:本文中的org.eclipse.xtext.common.types.TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。