From 5a89cd75cee9de0161fc101580fb06e0934f07fd Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Tue, 7 Jun 2022 17:11:21 +0200 Subject: [PATCH] Working on bugfixes for attributes - added documentation for usage of attributes --- pages/docs/using.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pages/docs/using.md b/pages/docs/using.md index 87d9192..5854d47 100644 --- a/pages/docs/using.md +++ b/pages/docs/using.md @@ -244,3 +244,14 @@ assertEquals(receiverRoot.getAList(), list("1", "other")); // after receiving "new" on topic "some/topic/one" assertEquals(receiverRoot.getAList(), list("1", "other", "new")); ``` + +## Using attributes as endpoint targets + +As described in the [DSL specification](/dsl), attributes can be used as endpoint targets. +They can only be used in send endpoints, and the return type of the attribute must be specified in the connect specification (because aspect files are not handled completely yet). + +Currently, synthesized, inherited, collection, and circular attributes are supported. +Nonterminal attributes are best used with the "legacy" notation `/Context:Type/` within the grammar. + +Please note, that serialization of Java collections of nonterminals is not supported, e.g., a `java.util.Set<ASTNode>`. +Only list nodes as defined in the grammar `/Context:Type*/` are properly recognized. -- GitLab