use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class MethodDeclarationImpl method existsExplicitSuperCall.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean existsExplicitSuperCall() {
final Function1<ExpressionStatement, Expression> _function = new Function1<ExpressionStatement, Expression>() {
public Expression apply(final ExpressionStatement it) {
return it.getExpression();
}
};
final Function1<ParameterizedCallExpression, Boolean> _function_1 = new Function1<ParameterizedCallExpression, Boolean>() {
public Boolean apply(final ParameterizedCallExpression it) {
Expression _target = it.getTarget();
return Boolean.valueOf((_target instanceof SuperLiteral));
}
};
final boolean existsSuperCall = IteratorExtensions.<ParameterizedCallExpression>exists(Iterators.<ParameterizedCallExpression>filter(IteratorExtensions.<ExpressionStatement, Expression>map(Iterators.<ExpressionStatement>filter(EcoreUtilN4.<Statement>getAllDirectlyFoundContentsOfType(this.getBody(), Statement.class), ExpressionStatement.class), _function), ParameterizedCallExpression.class), _function_1);
return existsSuperCall;
}
use of org.eclipse.n4js.n4JS.Expression in project n4js by eclipse.
the class MultiplicativeExpressionImpl 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.MULTIPLICATIVE_EXPRESSION__LHS, oldLhs, newLhs);
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 N4ClassDefinitionImpl method basicSetSuperClassExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSuperClassExpression(Expression newSuperClassExpression, NotificationChain msgs) {
Expression oldSuperClassExpression = superClassExpression;
superClassExpression = newSuperClassExpression;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.N4_CLASS_DEFINITION__SUPER_CLASS_EXPRESSION, oldSuperClassExpression, newSuperClassExpression);
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 IterationStatementImpl 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.ITERATION_STATEMENT__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 JSXPropertyAttributeImpl method basicSetJsxAttributeValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetJsxAttributeValue(Expression newJsxAttributeValue, NotificationChain msgs) {
Expression oldJsxAttributeValue = jsxAttributeValue;
jsxAttributeValue = newJsxAttributeValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.JSX_PROPERTY_ATTRIBUTE__JSX_ATTRIBUTE_VALUE, oldJsxAttributeValue, newJsxAttributeValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations