Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.c24
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.h33
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.c18
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.h25
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/RunAllTestcases.c4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/generator/TestDataClass.c6
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessage.c4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageQueue.c4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageService.c16
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/tmp/testlog/TestMessageService.xml14
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend2
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/MainGen.xtend4
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend2
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/Validator.java24
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java2
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/MainGen.java2
-rw-r--r--plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java2
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend4
-rw-r--r--plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java20
19 files changed, 134 insertions, 76 deletions
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.c b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.c
new file mode 100644
index 000000000..d4235dbc3
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.c
@@ -0,0 +1,24 @@
+#include "DataClass1.h"
+
+#include <string.h>
+
+//--------------------- begin user code
+ // usercode3
+//--------------------- end user code
+
+// TODO: do we need setters and getters for C and C++ ?
+
+//--------------------- operations
+int32 DataClass1_MultiplyWithAttr1(DataClass1* self, int32 value) {
+ return self->Attr1*value;
+}
+float32 DataClass1_MultiplyWithAttr3(DataClass1* self, float32 value) {
+ return self->Attr3*value;
+}
+
+// deep copy
+void DataClass1_deepCopy(DataClass1* source, DataClass1* target) {
+ memcpy(target, source, sizeof(DataClass1));
+}
+
+
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.h b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.h
new file mode 100644
index 000000000..dbf8dee81
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass1.h
@@ -0,0 +1,33 @@
+#ifndef _DataClass1_H_
+#define _DataClass1_H_
+
+#include "etDatatypes.h"
+
+/* TODO: includes only for used DataClasses, also for other models */
+#include "DataClass2.h"
+
+//--------------------- begin user code
+ // usercode1
+//--------------------- end user code
+
+typedef struct {
+ //--------------------- begin user code
+ // usercode2
+ //--------------------- end user code
+ //--------------------- attributes
+ int32 Attr1;
+ DataClass2 ComplexAttr;
+ float32 Attr3;
+} DataClass1;
+
+// TODO: do we need setters and getters for C and C++ ?
+
+//--------------------- operations
+int32 DataClass1_MultiplyWithAttr1(DataClass1* self, int32 value);
+float32 DataClass1_MultiplyWithAttr3(DataClass1* self, float32 value);
+
+// deep copy
+void DataClass1_deepCopy(DataClass1* source, DataClass1* target);
+
+#endif /* _DataClass1_H_ */
+
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.c b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.c
new file mode 100644
index 000000000..2150d7b41
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.c
@@ -0,0 +1,18 @@
+#include "DataClass2.h"
+
+#include <string.h>
+
+
+// TODO: do we need setters and getters for C and C++ ?
+
+//--------------------- operations
+void DataClass2_Operation1(DataClass2* self) {
+ /*nothing to do*/
+}
+
+// deep copy
+void DataClass2_deepCopy(DataClass2* source, DataClass2* target) {
+ memcpy(target, source, sizeof(DataClass2));
+}
+
+
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.h b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.h
new file mode 100644
index 000000000..2d8cbb74f
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/DataClass2.h
@@ -0,0 +1,25 @@
+#ifndef _DataClass2_H_
+#define _DataClass2_H_
+
+#include "etDatatypes.h"
+
+/* TODO: includes only for used DataClasses, also for other models */
+
+
+typedef struct {
+ //--------------------- attributes
+ int32 Attr1;
+ float32 Attr2;
+ int32 Attr3;
+} DataClass2;
+
+// TODO: do we need setters and getters for C and C++ ?
+
+//--------------------- operations
+void DataClass2_Operation1(DataClass2* self);
+
+// deep copy
+void DataClass2_deepCopy(DataClass2* source, DataClass2* target);
+
+#endif /* _DataClass2_H_ */
+
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/RunAllTestcases.c b/examples/org.eclipse.etrice.generator.c.reference/src/RunAllTestcases.c
index 55aad6b4d..3408a0434 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src/RunAllTestcases.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/RunAllTestcases.c
@@ -26,11 +26,11 @@ int main(void){
void runTestCases(void){
- RUnit_open("tmp/testlog","TestMessageService");
+ etUnit_open("tmp/testlog","TestMessageService");
RunCGeneratorTestcases();
RunCRuntimeTestcases();
- RUnit_close();
+ etUnit_close();
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/generator/TestDataClass.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/generator/TestDataClass.c
index 8a9aab638..5c481fd4f 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src/test/generator/TestDataClass.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/generator/TestDataClass.c
@@ -8,7 +8,7 @@
#include "TestDataClass.h"
-#include "RUnit.h"
+#include "etUnit.h"
#include "../../../src-gen/cGenRef/DataClass1.h"
@@ -47,8 +47,8 @@ void TestDataClass_testDataClassDeepCopy(void){
}
void TestDataClass_runSuite(void){
- RUnit_openTestSuite("TestDataClass");
+ etUnit_openTestSuite("TestDataClass");
ADD_TESTCASE(TestDataClass_Operations);
ADD_TESTCASE(TestDataClass_testDataClassDeepCopy);
- RUnit_closeTestSuite();
+ etUnit_closeTestSuite();
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessage.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessage.c
index 0dcd7e47d..c360b0a84 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessage.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessage.c
@@ -38,8 +38,8 @@ void TestEtMessage_testBasicMessage(void){
}
void TestEtMessage_runSuite(void){
- RUnit_openTestSuite("TestMessage");
+ etUnit_openTestSuite("TestMessage");
ADD_TESTCASE(TestEtMessage_testBasicMessage);
- RUnit_closeTestSuite();
+ etUnit_closeTestSuite();
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageQueue.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageQueue.c
index bf60c7e69..34efb3b31 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageQueue.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageQueue.c
@@ -94,8 +94,8 @@ void TestEtMessageQueue_testMassiveMessaging(void){
}
void TestEtMessageQueue_runSuite(void){
- RUnit_openTestSuite("TestetMessageQueue");
+ etUnit_openTestSuite("TestetMessageQueue");
ADD_TESTCASE(TestEtMessageQueue_testPushPop);
ADD_TESTCASE(TestEtMessageQueue_testMassiveMessaging);
- RUnit_closeTestSuite();
+ etUnit_closeTestSuite();
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageService.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageService.c
index 49ce679de..1d8b6cce8 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageService.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/runtime/TestEtMessageService.c
@@ -18,8 +18,8 @@
void TestEtMessageService_init(void){
etMessageService msgService;
- int16 max = 6;
- int16 blockSize = 32;
+ uint16 max = 6;
+ uint16 blockSize = 32;
uint8 msgBuffer[max*blockSize];
@@ -36,8 +36,8 @@ void TestEtMessageService_init(void){
void TestEtMessageService_GetPushPopReturn(void){
etMessageService msgService;
- int16 max = 6;
- int16 blockSize = 32;
+ uint16 max = 6;
+ uint16 blockSize = 32;
uint8 msgBuffer[max*blockSize];
etMessageService_init(&msgService, msgBuffer, max, blockSize);
@@ -82,8 +82,8 @@ void TestEtMessageService_GetPushPopReturn(void){
void TestEtMessageService_GetReturn(void){
etMessageService msgService;
- int16 max = 2;
- int16 blockSize = 32;
+ uint16 max = 2;
+ uint16 blockSize = 32;
uint8 msgBuffer[max*blockSize];
etMessageService_init(&msgService, msgBuffer, max, blockSize);
@@ -108,9 +108,9 @@ void TestEtMessageService_GetReturn(void){
}
void TestEtMessageService_runSuite(void){
- RUnit_openTestSuite("TestEtMessageService");
+ etUnit_openTestSuite("TestEtMessageService");
ADD_TESTCASE(TestEtMessageService_init);
ADD_TESTCASE(TestEtMessageService_GetPushPopReturn);
ADD_TESTCASE(TestEtMessageService_GetReturn);
- RUnit_closeTestSuite();
+ etUnit_closeTestSuite();
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/tmp/testlog/TestMessageService.xml b/examples/org.eclipse.etrice.generator.c.reference/tmp/testlog/TestMessageService.xml
index 904c4ba9f..0a2578004 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/tmp/testlog/TestMessageService.xml
+++ b/examples/org.eclipse.etrice.generator.c.reference/tmp/testlog/TestMessageService.xml
@@ -6,13 +6,13 @@
<testsuite name="TestMessage" tests="0" failures="0" errors="0" time="0">
<testcase name="TestEtMessage_testBasicMessage" time="0"/>
</testsuite>
- <testsuite name="TestRMessageQueue" tests="0" failures="0" errors="0" time="0">
- <testcase name="testPushPop" time="0"/>
- <testcase name="MassiveMessaging" time="0"/>
+ <testsuite name="TestetMessageQueue" tests="0" failures="0" errors="0" time="0">
+ <testcase name="TestEtMessageQueue_testPushPop" time="0"/>
+ <testcase name="TestEtMessageQueue_testMassiveMessaging" time="0"/>
</testsuite>
- <testsuite name="TestRMessageService" tests="0" failures="0" errors="0" time="0">
- <testcase name="testRMessageService_init" time="0"/>
- <testcase name="testRMessageService_GetPushPopReturn" time="0"/>
- <testcase name="testRMessageService_GetReturn" time="0"/>
+ <testsuite name="TestEtMessageService" tests="0" failures="0" errors="0" time="0">
+ <testcase name="TestEtMessageService_init" time="0"/>
+ <testcase name="TestEtMessageService_GetPushPopReturn" time="0"/>
+ <testcase name="TestEtMessageService_GetReturn" time="0"/>
</testsuite>
</testsuites>
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
index 63d522e0f..44fe509a8 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
@@ -59,7 +59,7 @@ class ActorClassGen {
#ifndef _«xpac.name»_H_
#define _«xpac.name»_H_
- #include "datatypes.h"
+ #include "etDatatypes.h"
package «ac.getPackage»;
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/MainGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/MainGen.xtend
index a714585ee..e959e9361 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/MainGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/MainGen.xtend
@@ -42,8 +42,8 @@ class MainGen implements IGenerator {
def void doGenerate(Root e) {
dataClassGen.doGenerate(e);
- protocolClassGen.doGenerate(e);
- actorClassGen.doGenerate(e);
+ //protocolClassGen.doGenerate(e);
+ //actorClassGen.doGenerate(e);
//subsystemClassGen.doGenerate(e);
if (!e.library) {
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
index 21d15d69f..9107c0b46 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
@@ -54,7 +54,7 @@ class ProtocolClassGen {
#ifndef _«pc.name»_H_
#define _«pc.name»_H_
- #include "datatypes.h"
+ #include "etDatatypes.h"
««« import org.eclipse.etrice.runtime.java.messaging.Address;
««« import org.eclipse.etrice.runtime.java.messaging.Message;
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/Validator.java b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/Validator.java
index d586d9155..7b6b5d98e 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/Validator.java
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/Validator.java
@@ -12,39 +12,15 @@
package org.eclipse.etrice.generator.c.gen;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.etrice.core.room.RoomModel;
-import org.eclipse.etrice.generator.base.ILogger;
import org.eclipse.etrice.generator.etricegen.Root;
-import com.google.inject.Inject;
-
/**
* @author Henrik Rentz-Reichert
*
*/
public class Validator {
- @Inject
- private ILogger logger;
-
public boolean validate(Root genModel) {
- int errorCount = 0;
- for (RoomModel mdl : genModel.getUsedRoomModels()) {
- TreeIterator<EObject> it = mdl.eAllContents();
- while (it.hasNext()) {
- //EObject obj = it.next();
-
- // currently unused
- }
- }
-
- if (errorCount>0) {
- logger.logError("Java generator detected "+errorCount+" error(s) - terminating", null);
- return false;
- }
-
return true;
}
}
diff --git a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java
index b085a5340..92339fc08 100644
--- a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java
+++ b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ActorClassGen.java
@@ -110,7 +110,7 @@ public class ActorClassGen {
_builder.append("_H_");
_builder.newLineIfNotEmpty();
_builder.newLine();
- _builder.append("#include \"datatypes.h\"");
+ _builder.append("#include \"etDatatypes.h\"");
_builder.newLine();
_builder.newLine();
_builder.append("package ");
diff --git a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/MainGen.java b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/MainGen.java
index 5bc49067d..936151346 100644
--- a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/MainGen.java
+++ b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/MainGen.java
@@ -49,8 +49,6 @@ public class MainGen implements IGenerator {
public void doGenerate(final Root e) {
this.dataClassGen.doGenerate(e);
- this.protocolClassGen.doGenerate(e);
- this.actorClassGen.doGenerate(e);
boolean _isLibrary = e.isLibrary();
boolean _operator_not = BooleanExtensions.operator_not(_isLibrary);
if (_operator_not) {
diff --git a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java
index 30a5b3237..89410d2dd 100644
--- a/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java
+++ b/plugins/org.eclipse.etrice.generator.c/xtend-gen/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.java
@@ -88,7 +88,7 @@ public class ProtocolClassGen {
_builder.append("_H_");
_builder.newLineIfNotEmpty();
_builder.newLine();
- _builder.append("#include \"datatypes.h\"");
+ _builder.append("#include \"etDatatypes.h\"");
_builder.newLine();
_builder.newLine();
_builder.newLine();
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
index dedd33c69..29adb4a9b 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/ProcedureHelpers.xtend
@@ -44,9 +44,9 @@ class ProcedureHelpers {
//--------------------- attributes
«FOR attribute : attribs»
«IF attribute.size==0»
- «languageExt.accessLevelProtected()»«attribute.type.typeName» «attribute.name» = «IF attribute.defaultValueLiteral==null»«attribute.type.defaultValue»«ELSE»«attribute.defaultValueLiteral»«ENDIF»;
+ «languageExt.accessLevelProtected()»«attribute.type.typeName» «attribute.name»;
«ELSE»
- «languageExt.accessLevelProtected()»«attribute.type.typeName»[] «attribute.name» = «attribute.arrayInitializer»;
+ «languageExt.accessLevelProtected()»«attribute.type.typeName»[] «attribute.name»;
«ENDIF»
«ENDFOR»
'''
diff --git a/plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java b/plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java
index e5aa1450b..15c5846e3 100644
--- a/plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java
+++ b/plugins/org.eclipse.etrice.generator/xtend-gen/org/eclipse/etrice/generator/generic/ProcedureHelpers.java
@@ -72,33 +72,17 @@ public class ProcedureHelpers {
_builder.append(" ");
String _name = attribute.getName();
_builder.append(_name, "");
- _builder.append(" = ");
- {
- String _defaultValueLiteral = attribute.getDefaultValueLiteral();
- boolean _operator_equals_1 = ObjectExtensions.operator_equals(_defaultValueLiteral, null);
- if (_operator_equals_1) {
- DataType _type_1 = attribute.getType();
- String _defaultValue = this._typeHelpers.defaultValue(_type_1);
- _builder.append(_defaultValue, "");
- } else {
- String _defaultValueLiteral_1 = attribute.getDefaultValueLiteral();
- _builder.append(_defaultValueLiteral_1, "");
- }
- }
_builder.append(";");
_builder.newLineIfNotEmpty();
} else {
String _accessLevelProtected_1 = this.languageExt.accessLevelProtected();
_builder.append(_accessLevelProtected_1, "");
- DataType _type_2 = attribute.getType();
- String _typeName_1 = this._typeHelpers.typeName(_type_2);
+ DataType _type_1 = attribute.getType();
+ String _typeName_1 = this._typeHelpers.typeName(_type_1);
_builder.append(_typeName_1, "");
_builder.append("[] ");
String _name_1 = attribute.getName();
_builder.append(_name_1, "");
- _builder.append(" = ");
- String _arrayInitializer = this.arrayInitializer(attribute);
- _builder.append(_arrayInitializer, "");
_builder.append(";");
_builder.newLineIfNotEmpty();
}

Back to the top