MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / gen_holder

Function gen_holder

java/idl2jni/codegen/im_java.cpp:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool gen_holder(const JavaName &jn, const char *held = "")
194{
195 JavaName jn_hold(jn, "Holder");
196 string value_type = *held ? held : jn.clazz_;
197 string body =
198 " // TypeCode operations not currently implemented\n"
199 " public " + value_type + " value;\n"
200 " public " + jn.clazz_ + "Holder() {}\n"
201 " public " + jn.clazz_ + "Holder(" + value_type + " initial) {\n"
202 " value = initial;\n"
203 " }\n";
204 return java_class_gen(jn_hold, JFINAL_CLASS, body.c_str());
205}
206
207std::string param_type(AST_Type *t, AST_Argument::Direction dir)
208{

Callers 6

gen_enumMethod · 0.85
gen_structMethod · 0.85
gen_typedefMethod · 0.85
gen_interfMethod · 0.85
gen_nativeMethod · 0.85
gen_unionMethod · 0.85

Calls 1

java_class_genFunction · 0.85

Tested by

no test coverage detected