mappingApplication.mustache 391 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
{{lastDefinitionToType}} {{resultVarPrefix}}{{lastDefinitionName}};
try {
  {{#InnerMappingDefinitions}}
René Schöne's avatar
René Schöne committed
4
  {{^last}}{{ToType}} {{/last}}{{resultVarPrefix}}{{methodName}} = {{methodName}}({{inputVarName}});
René Schöne's avatar
René Schöne committed
5
6
7
8
9
10
  {{/InnerMappingDefinitions}}
} catch (Exception e) {
  e.printStackTrace();
  {{preemptiveReturn}}
}
{{^alwaysApply}}
René Schöne's avatar
René Schöne committed
11
if ({{{condition}}}) {
René Schöne's avatar
René Schöne committed
12
13
14
  {{preemptiveReturn}}
}
{{/alwaysApply}}