rest.mustache 569 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
aspect REST {
  private String {{rootNodeName}}.RestName() { return "RagConnectREST"; }
3
  private RestServerHandler {{rootNodeName}}.{{restHandlerField}} = new RestServerHandler(RestName());
René Schöne's avatar
René Schöne committed
4
5

  {{#getRootTypeComponents}}
6
  {{#first}}inh RestServerHandler ASTNode.{{restHandlerAttribute}}();{{/first}}
René Schöne's avatar
René Schöne committed
7
8
9
  eq {{rootNodeName}}.get{{name}}().{{restHandlerAttribute}}() = {{restHandlerField}};
  {{/getRootTypeComponents}}
  {{^getRootTypeComponents}}
10
  syn RestServerHandler {{rootNodeName}}.{{restHandlerAttribute}}() = {{restHandlerField}};
René Schöne's avatar
René Schöne committed
11
12
  {{/getRootTypeComponents}}
}