summaryrefslogtreecommitdiff
path: root/ddl/templates/data.java.ede
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2016-03-21 12:37:37 +0100
committerCsaba Hruska <csaba.hruska@gmail.com>2016-03-21 14:12:26 +0100
commitd022971b99be214c71429d58f97f85b13e33a426 (patch)
tree712da683ad7167833c93e6671263d04bff39995d /ddl/templates/data.java.ede
parent4d40c4ee5ed15544d2ac7fb1ea7b61e89766d277 (diff)
work on java json loader
Diffstat (limited to 'ddl/templates/data.java.ede')
-rw-r--r--ddl/templates/data.java.ede2
1 files changed, 2 insertions, 0 deletions
diff --git a/ddl/templates/data.java.ede b/ddl/templates/data.java.ede
index 2aec628..71e3bd2 100644
--- a/ddl/templates/data.java.ede
+++ b/ddl/templates/data.java.ede
@@ -5,6 +5,7 @@ package {{ moduleName }};
5 5
6import java.util.ArrayList; 6import java.util.ArrayList;
7import java.util.HashMap; 7import java.util.HashMap;
8import RT.*;
8 9
9{% for m in imports %} 10{% for m in imports %}
10import {{ m.value }}.*; 11import {{ m.value }}.*;
@@ -21,6 +22,7 @@ public class {{ def.dataName }} {
21 public class {{ c.value.name }}_ extends {{ def.dataName }} { {% for f in c.value.fields %}{% if c.value.fields | hasFieldNames %} 22 public class {{ c.value.name }}_ extends {{ def.dataName }} { {% for f in c.value.fields %}{% if c.value.fields | hasFieldNames %}
22 public {{ f.value.fieldType | javaType }} {{ f.value.fieldName }};{% else %} 23 public {{ f.value.fieldType | javaType }} {{ f.value.fieldName }};{% else %}
23 public {{ f.value.fieldType | javaType }} _{{ f.index0 }};{% endif %}{% endfor %} 24 public {{ f.value.fieldType | javaType }} _{{ f.index0 }};{% endif %}{% endfor %}
25 public {{ c.value.name }}_() { tag = {{ def.dataName }}.Tag.{{ c.value.name }}; }
24 }{% endif %}{% endfor %} 26 }{% endif %}{% endfor %}
25} 27}
26 28