use of org.eclipse.n4js.n4JS.Annotation 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;
}
use of org.eclipse.n4js.n4JS.Annotation in project n4js by eclipse.
the class PropertySetterDeclarationImpl method getAnnotations.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Annotation> getAnnotations() {
EList<Annotation> _elvis = null;
PropertyAssignmentAnnotationList _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.Annotation in project n4js by eclipse.
the class VariableDeclarationImpl method getAllAnnotations.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Annotation> getAllAnnotations() {
final BasicEList<Annotation> result = XcoreCollectionLiterals.<Annotation>newBasicEList();
final EObject parent = this.eContainer();
if ((parent instanceof ExportDeclaration)) {
EList<Annotation> _annotations = ((ExportDeclaration) parent).getAnnotations();
Iterables.<Annotation>addAll(result, _annotations);
}
EList<Annotation> _annotations_1 = this.getAnnotations();
Iterables.<Annotation>addAll(result, _annotations_1);
return result;
}
use of org.eclipse.n4js.n4JS.Annotation in project n4js by eclipse.
the class N4ClassDeclarationImpl method getAnnotations.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Annotation> getAnnotations() {
EList<Annotation> _elvis = null;
AnnotationList _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.Annotation in project n4js by eclipse.
the class ExportedVariableStatementImpl method getAllAnnotations.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Annotation> getAllAnnotations() {
final BasicEList<Annotation> result = XcoreCollectionLiterals.<Annotation>newBasicEList();
final EObject parent = this.eContainer();
if ((parent instanceof ExportDeclaration)) {
EList<Annotation> _annotations = ((ExportDeclaration) parent).getAnnotations();
Iterables.<Annotation>addAll(result, _annotations);
}
EList<Annotation> _annotations_1 = this.getAnnotations();
Iterables.<Annotation>addAll(result, _annotations_1);
return result;
}
Aggregations