Skip to content

Conversion cycle

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

Clone this wiki locally