Changes between Version 24 and Version 25 of j2p
- Timestamp:
- 06/20/23 11:30:38 (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v24 v25 15 15 16 16 == 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. 17 Translation is done on a per-java-file basis. 20 18 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. 19 There are two main translation components in the core: 20 1. The translator that parses java file with [https://github.com/javaparser/javaparser Javaparser] and creates equivalent python code. 21 2. 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. 22 22 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. 24 26 25 27