Search in sources :

Example 31 with Expression

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

the class ChainExpressionImpl method basicSetFirst.

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

Example 32 with Expression

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

the class ScopeDelegationImpl method basicSetDelegate.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDelegate(Expression newDelegate, NotificationChain msgs) {
    Expression oldDelegate = delegate;
    delegate = newDelegate;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScopePackage.SCOPE_DELEGATION__DELEGATE, oldDelegate, newDelegate);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GlobalScopeExpression(com.avaloq.tools.ddk.xtext.scope.scope.GlobalScopeExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 33 with Expression

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

the class ScopeExpressionImpl method basicSetPrune.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPrune(Expression newPrune, NotificationChain msgs) {
    Expression oldPrune = prune;
    prune = newPrune;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScopePackage.SCOPE_EXPRESSION__PRUNE, oldPrune, newPrune);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ScopeExpression(com.avaloq.tools.ddk.xtext.scope.scope.ScopeExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 34 with Expression

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

the class SimpleScopeExpressionImpl method basicSetExpr.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetExpr(Expression newExpr, NotificationChain msgs) {
    Expression oldExpr = expr;
    expr = newExpr;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScopePackage.SIMPLE_SCOPE_EXPRESSION__EXPR, oldExpr, newExpr);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SimpleScopeExpression(com.avaloq.tools.ddk.xtext.scope.scope.SimpleScopeExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 35 with Expression

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

the class GlobalScopeExpressionImpl method basicSetName.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetName(Expression newName, NotificationChain msgs) {
    Expression oldName = name;
    name = newName;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ScopePackage.GLOBAL_SCOPE_EXPRESSION__NAME, oldName, newName);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GlobalScopeExpression(com.avaloq.tools.ddk.xtext.scope.scope.GlobalScopeExpression) DataExpression(com.avaloq.tools.ddk.xtext.scope.scope.DataExpression) 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