You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by ld...@apache.org on 2020/08/27 20:50:14 UTC

[plc4x-build-tools] branch feature/reverse-fields created (now c080caa)

This is an automated email from the ASF dual-hosted git repository.

ldywicki pushed a change to branch feature/reverse-fields
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git.


      at c080caa  Reverse field definition.

This branch includes the following new commits:

     new c080caa  Reverse field definition.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[plc4x-build-tools] 01/01: Reverse field definition.

Posted by ld...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ldywicki pushed a commit to branch feature/reverse-fields
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git

commit c080caab99fd29cc3b2c2b365e558fb623ea9c79
Author: Ɓukasz Dywicki <lu...@code-house.org>
AuthorDate: Thu Aug 27 22:48:18 2020 +0200

    Reverse field definition.
---
 .../codegenerator/types/fields/ReverseField.java   | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ReverseField.java b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ReverseField.java
new file mode 100644
index 0000000..d787a9e
--- /dev/null
+++ b/code-generation/types-base/src/main/java/org/apache/plc4x/plugins/codegenerator/types/fields/ReverseField.java
@@ -0,0 +1,34 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+package org.apache.plc4x.plugins.codegenerator.types.fields;
+
+import java.util.List;
+
+public interface ReverseField extends Field {
+
+    default String getTypeName() {
+        return "reverse";
+    }
+
+    int getSizeInBits();
+
+    List<Field> getFields();
+
+}