Skip to content

Commit

Permalink
Added javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jwharm committed Jan 3, 2023
1 parent a37fa59 commit f0ff76c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,17 @@ public void generate(Writer writer) throws IOException {

public void generateImplClass(Writer writer) throws IOException {
writer.write(" \n");
writer.write(" /**\n");
writer.write(" * The " + javaName + "Impl type represents a native instance of the " + javaName + " interface.\n");
writer.write(" */\n");
writer.write(" class " + javaName + "Impl extends org.gtk.gobject.GObject implements " + javaName + " {\n");
generateEnsureInitialized(writer, " ");
writer.write(" \n");
writer.write(" /**\n");
writer.write(" * Creates a new instance of " + javaName + " for the provided memory address.\n");
writer.write(" * @param address the memory address of the instance\n");
writer.write(" * @param ownership the ownership indicator of the instance\n");
writer.write(" */\n");
writer.write(" public " + javaName + "Impl(Addressable address, Ownership ownership) {\n");
writer.write(" super(address, ownership);\n");
writer.write(" }\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public ValueWrapper(GirElement parent, String name, String parentClass, String c

public void generateValueConstructor(Writer writer, String typeStr) throws IOException {
writer.write(" \n");
writer.write(" /**\n");
writer.write(" * Create a new " + javaName + " with the provided value\n");
writer.write(" */\n");
writer.write(" public " + javaName + "(" + typeStr + " value) {\n");
writer.write(" super(value);\n");
writer.write(" }\n");
Expand Down

0 comments on commit f0ff76c

Please sign in to comment.