use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class ParameterizedCallExpressionImpl method getReceiver.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Expression getReceiver() {
Expression _xifexpression = null;
Expression _target = this.getTarget();
if ((_target instanceof ParameterizedPropertyAccessExpression)) {
Expression _target_1 = this.getTarget();
_xifexpression = ((ParameterizedPropertyAccessExpression) _target_1).getTarget();
} else {
_xifexpression = null;
}
return _xifexpression;
}
use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class ParameterizedCallExpressionImpl 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, N4JSPackage.PARAMETERIZED_CALL_EXPRESSION__TARGET, oldTarget, newTarget);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class ParenExpressionImpl method isValidSimpleAssignmentTarget.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isValidSimpleAssignmentTarget() {
Expression _expression = this.getExpression();
boolean _tripleNotEquals = (_expression != null);
if (_tripleNotEquals) {
return this.getExpression().isValidSimpleAssignmentTarget();
}
return true;
}
use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class JSXExpressionImpl method basicSetExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
Expression oldExpression = expression;
expression = newExpression;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.JSX_EXPRESSION__EXPRESSION, oldExpression, newExpression);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class ReturnStatementImpl method basicSetExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
Expression oldExpression = expression;
expression = newExpression;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.RETURN_STATEMENT__EXPRESSION, oldExpression, newExpression);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations