Search in sources :

Example 16 with Expression

use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.

the class ConditionalExpressionImpl method basicSetFalseExpression.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFalseExpression(Expression newFalseExpression, NotificationChain msgs) {
    Expression oldFalseExpression = falseExpression;
    falseExpression = newFalseExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.CONDITIONAL_EXPRESSION__FALSE_EXPRESSION, oldFalseExpression, newFalseExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(org.eclipse.n4js.n4JS.Expression) ConditionalExpression(org.eclipse.n4js.n4JS.ConditionalExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 17 with Expression

use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.

the class EqualityExpressionImpl method basicSetLhs.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLhs(Expression newLhs, NotificationChain msgs) {
    Expression oldLhs = lhs;
    lhs = newLhs;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.EQUALITY_EXPRESSION__LHS, oldLhs, newLhs);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : EqualityExpression(org.eclipse.n4js.n4JS.EqualityExpression) Expression(org.eclipse.n4js.n4JS.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 18 with Expression

use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.

the class EqualityExpressionImpl method basicSetRhs.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRhs(Expression newRhs, NotificationChain msgs) {
    Expression oldRhs = rhs;
    rhs = newRhs;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.EQUALITY_EXPRESSION__RHS, oldRhs, newRhs);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : EqualityExpression(org.eclipse.n4js.n4JS.EqualityExpression) Expression(org.eclipse.n4js.n4JS.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 19 with Expression

use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.

the class AdditiveExpressionImpl method basicSetLhs.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLhs(Expression newLhs, NotificationChain msgs) {
    Expression oldLhs = lhs;
    lhs = newLhs;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.ADDITIVE_EXPRESSION__LHS, oldLhs, newLhs);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(org.eclipse.n4js.n4JS.Expression) AdditiveExpression(org.eclipse.n4js.n4JS.AdditiveExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 20 with Expression

use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.

the class ForStatementImpl method basicSetInitExpr.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetInitExpr(Expression newInitExpr, NotificationChain msgs) {
    Expression oldInitExpr = initExpr;
    initExpr = newInitExpr;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FOR_STATEMENT__INIT_EXPR, oldInitExpr, newInitExpr);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(org.eclipse.n4js.n4JS.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Expression (org.eclipse.n4js.n4JS.Expression)111 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)58 ConditionalExpression (org.eclipse.n4js.n4JS.ConditionalExpression)40 BinaryLogicalExpression (org.eclipse.n4js.n4JS.BinaryLogicalExpression)38 ParameterizedCallExpression (org.eclipse.n4js.n4JS.ParameterizedCallExpression)37 AssignmentExpression (org.eclipse.n4js.n4JS.AssignmentExpression)35 ParameterizedPropertyAccessExpression (org.eclipse.n4js.n4JS.ParameterizedPropertyAccessExpression)33 EqualityExpression (org.eclipse.n4js.n4JS.EqualityExpression)31 ParenExpression (org.eclipse.n4js.n4JS.ParenExpression)31 RelationalExpression (org.eclipse.n4js.n4JS.RelationalExpression)31 UnaryExpression (org.eclipse.n4js.n4JS.UnaryExpression)31 AdditiveExpression (org.eclipse.n4js.n4JS.AdditiveExpression)27 BinaryBitwiseExpression (org.eclipse.n4js.n4JS.BinaryBitwiseExpression)27 IndexedAccessExpression (org.eclipse.n4js.n4JS.IndexedAccessExpression)27 MultiplicativeExpression (org.eclipse.n4js.n4JS.MultiplicativeExpression)27 ShiftExpression (org.eclipse.n4js.n4JS.ShiftExpression)27 AwaitExpression (org.eclipse.n4js.n4JS.AwaitExpression)26 CastExpression (org.eclipse.n4js.n4JS.CastExpression)26 FunctionExpression (org.eclipse.n4js.n4JS.FunctionExpression)26 NewExpression (org.eclipse.n4js.n4JS.NewExpression)26