This tool would transpile a Java source code to valid C#. Uses JavaParser(include link) to get the AST and then re-writes the syntax via a visitor.
- Basic syntax rewrite changes
boolean
tobool
,a(String... strArray)
toa(params String[] strArray)
,package
tonamespace
etc - Structural rewrite extracts the
@Override
annotation to an inlineoverride
modifier, ensures thatnamespace
scopes around all classes in the file etc - Reserved words refactoring changes variables and methods with names like
ref
,typeof
,yield
toref_
,typeof_
,yield_
respectively - [Upcoming] Namespace resolution
- Allows trimming of excessive suffices like
org.java.package.actualCode
toactualCode
, - Rename package names to C# conventions so
actualCode
would beActualCode
- Move files source code out of deeeeeply nested directories
- Allows trimming of excessive suffices like
- [Upcoming] Type simplification take
String popsicle = "sweet"
tovar popsicle = "sweet"
- [Deprecated] Regex transforms can be used to convert
a.toString()
toa.ToString()
- [Upcoming] Type mappings would transform
a.toString()
toa.ToString()