Changes between Version 24 and Version 25 of j2p


Ignore:
Timestamp:
06/20/23 11:30:38 (20 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v24 v25  
    1515
    1616== Internal mechanism
    17 There are two main components in the core:
    18 1. The translator that parses java code and creates equivalent python code
    19 2. per-java-class translators that know how to translate a specific call to a java class function or field into equivalent python code.
     17Translation is done on a per-java-file basis.
    2018
    21 The first is generic and used for all java programs. It is currently pretty complete but details will be filled in over time as the need arises to support more java syntax.
     19There are two main translation components in the core:
     201. The translator that parses java file with [https://github.com/javaparser/javaparser Javaparser] and creates equivalent python code.
     212. per-java-class translators that know how to translate all calls to any java class method or field into equivalent python code. This code is using introspection and assumes all used java classes are available, either through libraries or from the java compiler.
    2222
    23 The second is currently very partial. The reason is that there are a huge number of java classes, and every field and function in it will need a specialized translator. This will grow slowly over time as needed.
     23(1) generic and used for all java programs. It is currently pretty complete but details will be filled in over time as the need arises to support more java syntax.
     24
     25(2) is currently very partial. The reason is that there are a huge number of java classes and even more 3rd party libraries, and almost every field and function in it will need a specialized translator. This will grow slowly over time as needed.
    2426
    2527