Return deeply nested Java object to Javascript without access to source code #958
-
Hello there, First of all thank you for making TeaVM. It's an extremely ambitious project, and I'm very pleasantly surprised at how far I can get out of the box with it (I'm doing some comparisons between various toolings - TeaVM, J2CL, Bytecoder, etc.), and TeaVM's the only one getting me fairly close to what I'm trying to achieve. Kudos to that 💯 A bit of context about my question: I am dealing with a closed source JAR whose source code I do not have access to for my open source project Prettier Apex. I have permission to use that JAR from the company generating it (Salesforce), but I do not have access to its source code. The library basically parses source code into an Abstract Syntax Tree structure. I have managed to transpile this JAR into an ES2025 module which can be imported by my NodeJS script, after adding in a bunch of fake classlibs + re-implement a few methods. I've annotated a method as I've looked into the Metaprogramming guide, but it doesn't look like I can add annotation to a ReflectField either. I can also make the child node's fields less mangled in JS by setting Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi. I think TeaVM itself can't help you. You can try following solutions:
|
Beta Was this translation helpful? Give feedback.
Hi. I think TeaVM itself can't help you. You can try following solutions:
@JSExport
.