|
|
@@ -14,6 +14,12 @@ element.ownedAnnotations->select(p|p.property.name.toString().matches(annotation
|
|
|
|
|
|
[query public getCommentAnnotations(element : AnnotatedElement) : Set(Annotation) = getAnnotations(element, 'comment')/]
|
|
|
|
|
|
+[query public getLabelAnnotation(element : AnnotatedElement) : Annotation = getAnnotation(element, 'label')/]
|
|
|
+
|
|
|
+[query public getDefinedByAnnotations(element : AnnotatedElement) : Set(Annotation) = getAnnotations(element, 'isDefinedBy')/]
|
|
|
+
|
|
|
+[query public getSeeAlsoAnnotations(element : AnnotatedElement) : Set(Annotation) = getAnnotations(element, 'seeAlso')/]
|
|
|
+
|
|
|
[template public annotationValue(annotation : Annotation) post(trim())]
|
|
|
[let annotationLiteral : QuotedLiteral = annotation.value]
|
|
|
[annotationLiteral.value.toString()/]
|