From 58ce8c4a53df6b4f6718dc0e68bf1e2864e1f958 Mon Sep 17 00:00:00 2001 From: "andrew (from workstation)" Date: Wed, 20 Oct 2021 22:02:09 +0200 Subject: [PATCH] generics --- __main__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/__main__.py b/__main__.py index b05adb1..e4f0a78 100644 --- a/__main__.py +++ b/__main__.py @@ -511,7 +511,15 @@ def main(input_path: str, output_path: str, headers_path: str): output.newline() output.indent() - output.open_custom_block("public static class", class_name, "extends", class_meta[1]) + + class_generics = "" + + if class_meta[1] == "Function": + class_generics = "<" + class_generics += docs.split("@link ")[1].split()[0] + class_generics += ">" + + output.open_custom_block("public static class", class_name, "extends", class_meta[1] + class_generics) for arg_type, arg_name, docs in class_meta[2]: output.newline()