| 476 | } |
| 477 | |
| 478 | std::string TD_TL_writer_java::gen_constructor_field_init(int field_num, const std::string &class_name, |
| 479 | const tl::arg &a, bool is_default) const { |
| 480 | std::string field_type = gen_field_type(a); |
| 481 | if (field_type.empty()) { |
| 482 | return ""; |
| 483 | } |
| 484 | |
| 485 | if (is_default) { |
| 486 | return (field_num == 0 ? ") {\n" : ""); |
| 487 | } |
| 488 | |
| 489 | return std::string(field_num == 0 ? ") {\n" : "") + " this." + gen_field_name(a.name) + " = " + |
| 490 | gen_field_name(a.name) + ";\n"; |
| 491 | } |
| 492 | |
| 493 | std::string TD_TL_writer_java::gen_constructor_end(const tl::tl_combinator *t, int fields_num, bool is_default) const { |
| 494 | if (fields_num == 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected