-
Notifications
You must be signed in to change notification settings - Fork 4
Conversion cycle
Multithread edited this page Aug 30, 2020
·
1 revision
- Loading of the .java files with ANTLR (CodeConverterJava)
- Load the ANTLR files into an Intermediate Language(IL) (CodeConverterJava)
- Code-Analysis of the names from the java code (CodeConverterCore)
- classname, fieldnames, methodenames, namespace-/package name
- Code-Analysis of methode content and field inizialiser and linking of variables/field/types inside the IL (CodeConverterCore)
- Code-Analysis for the conversion from Java to C# (CodeConverterJavaToCSharp)
- renaming classes
- renaming methods
- renaming fields
- renaming variable names
- Conversion from Java to C#. All code that cannot be used 1:1 needs to be changed here (CodeConverterJavaToCSharp)
- handling of override and abstract modifiers
- handling of structs with nullable or not nullable i.e."return inBool ? tmpInt : null"
- Generating C# files from the mapped IL code. Tab indent is also handled here (CodeConverterCSharp)
- Writing the C# files to the filesystem and generating the csproj file with all the converted files linked (CodeConverterCSharp)