Generating stubs
To implement the java classes, a skeleton in D is very useful. With marking a class with stub=true in the xml config, TioPort can assist here.
A return statement is inserted if the following conditions are true:
- the module is marked as stub in the xml config
- the methods return type is not void
- the method has an empty pair of braces
So it is easy to prepare the java file with. Just delete all contents of the methods. With vim you can make a keyboard makro search to an opening brace, delete until the matching closing brace and repeat the makro until the end of the file.
