You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/08/08 14:21:38 UTC
[plc4x-build-tools] branch develop updated: - Renamed the
ArrayField and ManualArrayFields "lengthType" and "lengthExpression" to
"loopType" and "loopExpression" because the ManualArrayField needed a
"lengthExpression"
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git
The following commit(s) were added to refs/heads/develop by this push:
new b702759 - Renamed the ArrayField and ManualArrayFields "lengthType" and "lengthExpression" to "loopType" and "loopExpression" because the ManualArrayField needed a "lengthExpression"
b702759 is described below
commit b7027594575ae65a8d2f2ca47e3121b155b60f33
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Aug 8 16:21:31 2019 +0200
- Renamed the ArrayField and ManualArrayFields "lengthType" and "lengthExpression" to "loopType" and "loopExpression" because the ManualArrayField needed a "lengthExpression"
---
.../plc4x/plugins/codegenerator/types/fields/ArrayField.java | 6 +++---
.../plugins/codegenerator/types/fields/ManualArrayField.java | 8 +++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ArrayField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ArrayField.java
index a65220a..6e417be 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ArrayField.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ArrayField.java
@@ -28,11 +28,11 @@ public interface ArrayField extends PropertyField {
return "array";
}
- LengthType getLengthType();
+ LoopType getLoopType();
- Term getLengthExpression();
+ Term getLoopExpression();
- enum LengthType {
+ enum LoopType {
COUNT,
LENGTH,
TERMINATED
diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ManualArrayField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ManualArrayField.java
index 2caf15e..bdaed70 100644
--- a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ManualArrayField.java
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ManualArrayField.java
@@ -28,15 +28,17 @@ public interface ManualArrayField extends PropertyField {
return "manualArray";
}
- LengthType getLengthType();
+ LoopType getLoopType();
- Term getLengthExpression();
+ Term getLoopExpression();
Term getSerializationExpression();
Term getDeserializationExpression();
- enum LengthType {
+ Term getLengthExpression();
+
+ enum LoopType {
COUNT,
LENGTH,
TERMINATED