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