Currently, Function Studio supports most of the code generation features available in Java, including generating a constructor, getter, or setter method, overriding methods that a subclass inherits from a superclass, and implementing methods of an interface.
Currently, you can generate the Java code in either of the following two ways:
- Right-click the blank area and choose Generate.
- Press cmd+m.
- On the Generate Code panel, click Constructor.
- Select the fields for the constructor. The constructor that contains the statement to initialize such fields is generated.
Getter and setter
You can generate the code of the getter and setter methods in the same way as you generate the constructor.
On the Generate panel, click Override Methods. All methods that can be overridden are listed on the Generate Code panel.
Select a method. The code for overriding this method is generated.
You can generate code for implementing methods in a similar way as that described in "Override methods."
In addition to the Implement Methods option on the Generate panel, you can also use code hinting to achieve the same purpose.