What is TioPort
TioPort is a Java-to-D converter. Its first target project is swt-3.2.1-linux-gtk-x86 and swt-3.2.1-win32-x86. The goal is, to make this convertion fully automatically. So there is perhaps a chance, that newer versions of SWT can be converted with less work.
While TioPort is the source code converter, there is 'dejavu' the D version of the java standard library....
Features of TioPort
- escaping of D keywords, which are not keywords in java.
- The class hierarchy of ported classes and interfaces
- automatic renaming of fields?, if methods with same name exist.
- insertion of delegate methods to superclass? method if a method is overloaded. (In D, the inherited method is hidden in this case, in java not)
- rewrite in place anonymous classes to normal inner classes.
- String literal to string objects, string concatenation, etc.
- casting between object and array types?
- add found FQN to the imports
- change character literal for invalid UTF into hex literal
- switch rewriting due to difference in allowed cases
- refactoring of field initializers, instance initializers and static constructors
- Help generating stubs with inserting a return statement with a type correct value
- Explicit casts for buildin types
- Static Ctors
- Reflection
- Generics and Arrays
- Finally block containing return or catch
- Automatic delegates for reimplemented interface methods
- Initialization of wchar and wchar arrays
- Integration of C libraries
- Defined eval order
