eachInit()

in lib/generator.js [1682:1697]


  eachInit(ast, level) {
    var className = this.className || 'Client';
    this.visitAnnotation(ast.annotation, level);
    let comments = DSL.comment.getFrontComments(this.comments, ast.tokenRange[0]);
    this.visitComments(comments, level);
    this.emit(`public ${className}`, level);
    this.visitParams(ast.params, level);
    if (!this.NoException) {
      this.emit(' throws Exception');
    }
    this.emit(' {\n');
    if (ast.initBody) {
      this.visitStmts(ast.initBody, level + 1);
    }
    this.emit('}\n\n', level);
  }