MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / gen_class_begin

Method gen_class_begin

tl/generate/tl_writer_java.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230std::string TD_TL_writer_java::gen_class_begin(const std::string &class_name, const std::string &base_class_name,
231 bool is_proxy) const {
232 std::string full_class_name = "static class " + class_name;
233 if (class_name != gen_base_tl_class_name()) {
234 full_class_name += " extends " + base_class_name;
235 }
236 std::string result = " public " + std::string(is_proxy ? "abstract " : "") + full_class_name + " {\n";
237 if (class_name == gen_base_tl_class_name() || class_name == gen_base_function_class_name()) {
238 result += " public native String toString();\n";
239 }
240
241 return result;
242}
243
244std::string TD_TL_writer_java::gen_class_end() const {
245 return " }\n\n";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected