Search in sources :

Example 26 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class BooleanOperationImpl method basicSetLeft.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLeft(Expression newLeft, NotificationChain msgs) {
    Expression oldLeft = left;
    left = newLeft;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.BOOLEAN_OPERATION__LEFT, oldLeft, newLeft);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 27 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class IfExpressionImpl method basicSetThenPart.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetThenPart(Expression newThenPart, NotificationChain msgs) {
    Expression oldThenPart = thenPart;
    thenPart = newThenPart;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.IF_EXPRESSION__THEN_PART, oldThenPart, newThenPart);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : IfExpression(com.avaloq.tools.ddk.xtext.expression.expression.IfExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 28 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class IfExpressionImpl method basicSetElsePart.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetElsePart(Expression newElsePart, NotificationChain msgs) {
    Expression oldElsePart = elsePart;
    elsePart = newElsePart;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.IF_EXPRESSION__ELSE_PART, oldElsePart, newElsePart);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : IfExpression(com.avaloq.tools.ddk.xtext.expression.expression.IfExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 29 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class SwitchExpressionImpl method basicSetDefaultExpr.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDefaultExpr(Expression newDefaultExpr, NotificationChain msgs) {
    Expression oldDefaultExpr = defaultExpr;
    defaultExpr = newDefaultExpr;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.SWITCH_EXPRESSION__DEFAULT_EXPR, oldDefaultExpr, newDefaultExpr);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SwitchExpression(com.avaloq.tools.ddk.xtext.expression.expression.SwitchExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 30 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class TypeSelectExpressionImpl method basicSetTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTarget(Expression newTarget, NotificationChain msgs) {
    Expression oldTarget = target;
    target = newTarget;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.TYPE_SELECT_EXPRESSION__TARGET, oldTarget, newTarget);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : TypeSelectExpression(com.avaloq.tools.ddk.xtext.expression.expression.TypeSelectExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Expression (com.avaloq.tools.ddk.xtext.expression.expression.Expression)36 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)33 GlobalScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.GlobalScopeExpression)4 IfExpression (com.avaloq.tools.ddk.xtext.expression.expression.IfExpression)3 DataExpression (com.avaloq.tools.ddk.xtext.scope.scope.DataExpression)3 ChainExpression (com.avaloq.tools.ddk.xtext.expression.expression.ChainExpression)2 CollectionExpression (com.avaloq.tools.ddk.xtext.expression.expression.CollectionExpression)2 LetExpression (com.avaloq.tools.ddk.xtext.expression.expression.LetExpression)2 SwitchExpression (com.avaloq.tools.ddk.xtext.expression.expression.SwitchExpression)2 SimpleScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.SimpleScopeExpression)2 InterfaceExpression (com.avaloq.tools.ddk.xtext.export.export.InterfaceExpression)1 CastedExpression (com.avaloq.tools.ddk.xtext.expression.expression.CastedExpression)1 TypeSelectExpression (com.avaloq.tools.ddk.xtext.expression.expression.TypeSelectExpression)1 FactoryExpression (com.avaloq.tools.ddk.xtext.scope.scope.FactoryExpression)1 NamingExpression (com.avaloq.tools.ddk.xtext.scope.scope.NamingExpression)1 ScopeDefinition (com.avaloq.tools.ddk.xtext.scope.scope.ScopeDefinition)1 ScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.ScopeExpression)1 ScopeRule (com.avaloq.tools.ddk.xtext.scope.scope.ScopeRule)1 AbstractXtextTest (com.avaloq.tools.ddk.xtext.test.AbstractXtextTest)1 Check (org.eclipse.xtext.validation.Check)1