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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations