本文整理汇总了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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例12: getDeclarator
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public JvmTypeParameterDeclarator getDeclarator()
{
if (eContainerFeatureID() != TypesPackage.JVM_TYPE_PARAMETER__DECLARATOR) return null;
return (JvmTypeParameterDeclarator)eInternalContainer();
}