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

The following examples show how to use org.eclipse.xtext.xbase.XbasePackage#XVARIABLE_DECLARATION__RIGHT . 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: XVariableDeclarationImpl.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.XVARIABLE_DECLARATION__TYPE:
			return getType();
		case XbasePackage.XVARIABLE_DECLARATION__NAME:
			return getName();
		case XbasePackage.XVARIABLE_DECLARATION__RIGHT:
			return getRight();
		case XbasePackage.XVARIABLE_DECLARATION__WRITEABLE:
			return isWriteable();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 2
Source File: XVariableDeclarationImpl.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 eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case XbasePackage.XVARIABLE_DECLARATION__TYPE:
			setType((JvmTypeReference)newValue);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__NAME:
			setName((String)newValue);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__RIGHT:
			setRight((XExpression)newValue);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__WRITEABLE:
			setWriteable((Boolean)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 3
Source File: XVariableDeclarationImpl.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.XVARIABLE_DECLARATION__TYPE:
			setType((JvmTypeReference)null);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__NAME:
			setName(NAME_EDEFAULT);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__RIGHT:
			setRight((XExpression)null);
			return;
		case XbasePackage.XVARIABLE_DECLARATION__WRITEABLE:
			setWriteable(WRITEABLE_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}
 
Example 4
Source File: XVariableDeclarationImpl.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.XVARIABLE_DECLARATION__TYPE:
			return type != null;
		case XbasePackage.XVARIABLE_DECLARATION__NAME:
			return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
		case XbasePackage.XVARIABLE_DECLARATION__RIGHT:
			return right != null;
		case XbasePackage.XVARIABLE_DECLARATION__WRITEABLE:
			return writeable != WRITEABLE_EDEFAULT;
	}
	return super.eIsSet(featureID);
}
 
Example 5
Source File: XVariableDeclarationImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRight(XExpression newRight, NotificationChain msgs)
{
	XExpression oldRight = right;
	right = newRight;
	if (eNotificationRequired())
	{
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XbasePackage.XVARIABLE_DECLARATION__RIGHT, oldRight, newRight);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 6
Source File: XVariableDeclarationImpl.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.XVARIABLE_DECLARATION__TYPE:
			return basicSetType(null, msgs);
		case XbasePackage.XVARIABLE_DECLARATION__RIGHT:
			return basicSetRight(null, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}