This commit is contained in:
andrew (from workstation) 2021-10-20 22:02:09 +02:00
parent c1df305f0f
commit 58ce8c4a53
1 changed files with 9 additions and 1 deletions

View File

@ -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()