Search in sources :

Example 1 with ExpressionAnnotationList

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

the class FunctionExpressionImpl method basicSetAnnotationList.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetAnnotationList(ExpressionAnnotationList newAnnotationList, NotificationChain msgs) {
    ExpressionAnnotationList oldAnnotationList = annotationList;
    annotationList = newAnnotationList;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FUNCTION_EXPRESSION__ANNOTATION_LIST, oldAnnotationList, newAnnotationList);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ExpressionAnnotationList(org.eclipse.n4js.n4JS.ExpressionAnnotationList)

Example 2 with ExpressionAnnotationList

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

the class FunctionExpressionImpl method getAnnotations.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Annotation> getAnnotations() {
    EList<Annotation> _elvis = null;
    ExpressionAnnotationList _annotationList = this.getAnnotationList();
    EList<Annotation> _annotations = null;
    if (_annotationList != null) {
        _annotations = _annotationList.getAnnotations();
    }
    if (_annotations != null) {
        _elvis = _annotations;
    } else {
        EList<Annotation> _emptyEList = XcoreCollectionLiterals.<Annotation>emptyEList();
        _elvis = _emptyEList;
    }
    return _elvis;
}
Also used : ExpressionAnnotationList(org.eclipse.n4js.n4JS.ExpressionAnnotationList) Annotation(org.eclipse.n4js.n4JS.Annotation)

Example 3 with ExpressionAnnotationList

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

the class AnnotableExpressionImpl method basicSetAnnotationList.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetAnnotationList(ExpressionAnnotationList newAnnotationList, NotificationChain msgs) {
    ExpressionAnnotationList oldAnnotationList = annotationList;
    annotationList = newAnnotationList;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.ANNOTABLE_EXPRESSION__ANNOTATION_LIST, oldAnnotationList, newAnnotationList);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ExpressionAnnotationList(org.eclipse.n4js.n4JS.ExpressionAnnotationList)

Example 4 with ExpressionAnnotationList

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

the class AnnotableExpressionImpl method getAnnotations.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Annotation> getAnnotations() {
    EList<Annotation> _elvis = null;
    ExpressionAnnotationList _annotationList = this.getAnnotationList();
    EList<Annotation> _annotations = null;
    if (_annotationList != null) {
        _annotations = _annotationList.getAnnotations();
    }
    if (_annotations != null) {
        _elvis = _annotations;
    } else {
        EList<Annotation> _emptyEList = XcoreCollectionLiterals.<Annotation>emptyEList();
        _elvis = _emptyEList;
    }
    return _elvis;
}
Also used : ExpressionAnnotationList(org.eclipse.n4js.n4JS.ExpressionAnnotationList) Annotation(org.eclipse.n4js.n4JS.Annotation)

Example 5 with ExpressionAnnotationList

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

the class N4ClassExpressionImpl method getAnnotations.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Annotation> getAnnotations() {
    EList<Annotation> _elvis = null;
    ExpressionAnnotationList _annotationList = this.getAnnotationList();
    EList<Annotation> _annotations = null;
    if (_annotationList != null) {
        _annotations = _annotationList.getAnnotations();
    }
    if (_annotations != null) {
        _elvis = _annotations;
    } else {
        EList<Annotation> _emptyEList = XcoreCollectionLiterals.<Annotation>emptyEList();
        _elvis = _emptyEList;
    }
    return _elvis;
}
Also used : ExpressionAnnotationList(org.eclipse.n4js.n4JS.ExpressionAnnotationList) Annotation(org.eclipse.n4js.n4JS.Annotation)

Aggregations

ExpressionAnnotationList (org.eclipse.n4js.n4JS.ExpressionAnnotationList)7 Annotation (org.eclipse.n4js.n4JS.Annotation)4 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)3 EPackage (org.eclipse.emf.ecore.EPackage)1 AdditiveExpression (org.eclipse.n4js.n4JS.AdditiveExpression)1 AnnotationList (org.eclipse.n4js.n4JS.AnnotationList)1 Argument (org.eclipse.n4js.n4JS.Argument)1 ArrayBindingPattern (org.eclipse.n4js.n4JS.ArrayBindingPattern)1 ArrayElement (org.eclipse.n4js.n4JS.ArrayElement)1 ArrayLiteral (org.eclipse.n4js.n4JS.ArrayLiteral)1 ArrayPadding (org.eclipse.n4js.n4JS.ArrayPadding)1 ArrowFunction (org.eclipse.n4js.n4JS.ArrowFunction)1 AssignmentExpression (org.eclipse.n4js.n4JS.AssignmentExpression)1 AwaitExpression (org.eclipse.n4js.n4JS.AwaitExpression)1 BinaryBitwiseExpression (org.eclipse.n4js.n4JS.BinaryBitwiseExpression)1 BinaryIntLiteral (org.eclipse.n4js.n4JS.BinaryIntLiteral)1 BinaryLogicalExpression (org.eclipse.n4js.n4JS.BinaryLogicalExpression)1 BindingElement (org.eclipse.n4js.n4JS.BindingElement)1 BindingProperty (org.eclipse.n4js.n4JS.BindingProperty)1 Block (org.eclipse.n4js.n4JS.Block)1