What is the best way to generate java from python?
I want to write a decorator that generates java code to call a json version of a function (I can use existing decorators to export json-api).
What is the best way to generate java, should I consider things like FSM?
Ideally, I can write my code once for the server and generate code for interacting with it for different languages (Java first).
Edit (pulled out a deleted answer from a comment):
The java code will be running on Android, and the python code will be on the django server ... In addition, I want to be able to statically generate Java code and use this as part of an API that people can use.
source
share