X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=java_strings.py;h=cc545e8297f97797dc53ce3b91924c12fe6cf7d9;hb=57c69192cf720e784e837610444e1c762ab0a6fa;hp=a616a24a38f8de72c9f1ab0643ba9d06f0a5c899;hpb=ece5c948b950d7149e98780423e77cf38b9d9b9e;p=ldk-java diff --git a/java_strings.py b/java_strings.py index a616a24a..cc545e82 100644 --- a/java_strings.py +++ b/java_strings.py @@ -1043,8 +1043,12 @@ import java.util.Arrays; if doc_comment is not None: out_java_struct += "\t/**\n\t * " + doc_comment.replace("\n", "\n\t * ") + "\n\t */\n" if not takes_self: - out_java_struct += ( - "\tpublic static " + return_type_info.java_hu_ty + " constructor_" + meth_n + "(") + if meth_n == "new": + out_java_struct += "\tpublic static " + return_type_info.java_hu_ty + " of(" + elif meth_n == "default": + out_java_struct += "\tpublic static " + return_type_info.java_hu_ty + " with_default(" + else: + out_java_struct += "\tpublic static " + return_type_info.java_hu_ty + " " + meth_n + "(" else: out_java_struct += ("\tpublic " + return_type_info.java_hu_ty + " " + meth_n + "(") for idx, arg in enumerate(argument_types):