Java Code Examples for org.eclipse.xtext.xbase.XbasePackage#XCLOSURE__IMPLICIT_FORMAL_PARAMETERS

The following examples show how to use org.eclipse.xtext.xbase.XbasePackage#XCLOSURE__IMPLICIT_FORMAL_PARAMETERS . 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: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
	switch (featureID)
	{
		case XbasePackage.XCLOSURE__DECLARED_FORMAL_PARAMETERS:
			return getDeclaredFormalParameters();
		case XbasePackage.XCLOSURE__EXPRESSION:
			return getExpression();
		case XbasePackage.XCLOSURE__EXPLICIT_SYNTAX:
			return isExplicitSyntax();
		case XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS:
			return getImplicitFormalParameters();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 2
Source File: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case XbasePackage.XCLOSURE__DECLARED_FORMAL_PARAMETERS:
			getDeclaredFormalParameters().clear();
			getDeclaredFormalParameters().addAll((Collection<? extends JvmFormalParameter>)newValue);
			return;
		case XbasePackage.XCLOSURE__EXPRESSION:
			setExpression((XExpression)newValue);
			return;
		case XbasePackage.XCLOSURE__EXPLICIT_SYNTAX:
			setExplicitSyntax((Boolean)newValue);
			return;
		case XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS:
			getImplicitFormalParameters().clear();
			getImplicitFormalParameters().addAll((Collection<? extends JvmFormalParameter>)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 3
Source File: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
	switch (featureID)
	{
		case XbasePackage.XCLOSURE__DECLARED_FORMAL_PARAMETERS:
			getDeclaredFormalParameters().clear();
			return;
		case XbasePackage.XCLOSURE__EXPRESSION:
			setExpression((XExpression)null);
			return;
		case XbasePackage.XCLOSURE__EXPLICIT_SYNTAX:
			setExplicitSyntax(EXPLICIT_SYNTAX_EDEFAULT);
			return;
		case XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS:
			getImplicitFormalParameters().clear();
			return;
	}
	super.eUnset(featureID);
}
 
Example 4
Source File: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
	switch (featureID)
	{
		case XbasePackage.XCLOSURE__DECLARED_FORMAL_PARAMETERS:
			return declaredFormalParameters != null && !declaredFormalParameters.isEmpty();
		case XbasePackage.XCLOSURE__EXPRESSION:
			return expression != null;
		case XbasePackage.XCLOSURE__EXPLICIT_SYNTAX:
			return explicitSyntax != EXPLICIT_SYNTAX_EDEFAULT;
		case XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS:
			return implicitFormalParameters != null && !implicitFormalParameters.isEmpty();
	}
	return super.eIsSet(featureID);
}
 
Example 5
Source File: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EList<JvmFormalParameter> getImplicitFormalParameters()
{
	if (implicitFormalParameters == null)
	{
		implicitFormalParameters = new EObjectContainmentEList<JvmFormalParameter>(JvmFormalParameter.class, this, XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS);
	}
	return implicitFormalParameters;
}
 
Example 6
Source File: XClosureImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
	switch (featureID)
	{
		case XbasePackage.XCLOSURE__DECLARED_FORMAL_PARAMETERS:
			return ((InternalEList<?>)getDeclaredFormalParameters()).basicRemove(otherEnd, msgs);
		case XbasePackage.XCLOSURE__EXPRESSION:
			return basicSetExpression(null, msgs);
		case XbasePackage.XCLOSURE__IMPLICIT_FORMAL_PARAMETERS:
			return ((InternalEList<?>)getImplicitFormalParameters()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}