[#1141] fixed javadoc problem with serializer constraints

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2019-05-13 08:04:49 +02:00
parent 20667db3ac
commit 6baba136df
2 changed files with 8 additions and 0 deletions

View file

@ -394,11 +394,13 @@ import static extension org.eclipse.xtext.xtext.generator.util.GenModelUtil2.*
val states = c.linearListOfMandatoryAssignments
'''
/**
* <pre>{@code
* Contexts:
* «c.contexts.sort.join("\n").replaceAll("\\n","\n* ")»
*
* Constraint:
* «IF c.body === null»{«c.type.name»}«ELSE»«c.body.toString.replaceAll("\\n","\n* ")»«ENDIF»
* }</pre>
*/
protected void sequence_«c.simpleName»(«ISerializationContext» context, «c.type» semanticObject) {
«IF states !== null»

View file

@ -991,6 +991,9 @@ public class SerializerFragment2 extends AbstractStubGeneratingFragment {
_builder.append("/**");
_builder.newLine();
_builder.append(" ");
_builder.append("* <pre>{@code ");
_builder.newLine();
_builder.append(" ");
_builder.append("* Contexts:");
_builder.newLine();
_builder.append(" ");
@ -1021,6 +1024,9 @@ public class SerializerFragment2 extends AbstractStubGeneratingFragment {
}
_builder.newLineIfNotEmpty();
_builder.append(" ");
_builder.append("* }</pre>");
_builder.newLine();
_builder.append(" ");
_builder.append("*/");
_builder.newLine();
_builder.append("protected void sequence_");