Skip to content
Snippets Groups Projects
Commit 5a89cd75 authored by René Schöne's avatar René Schöne
Browse files

Working on bugfixes for attributes

- added documentation for usage of attributes
parent ea45de39
No related branches found
No related tags found
1 merge request!32Resolve "Allow collection and circular attributes as endpoint targets"
Pipeline #13819 passed
...@@ -244,3 +244,14 @@ assertEquals(receiverRoot.getAList(), list("1", "other")); ...@@ -244,3 +244,14 @@ assertEquals(receiverRoot.getAList(), list("1", "other"));
// after receiving "new" on topic "some/topic/one" // after receiving "new" on topic "some/topic/one"
assertEquals(receiverRoot.getAList(), list("1", "other", "new")); 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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment