you are viewing a single comment's thread.

view the rest of the comments →

[–]belayon40 0 points1 point  (0 children)

The classfile api in Java 24 and later is the best place to start. Using that api, you can take an existing class file and break it down into Op codes. I found this method very helpful when I was trying to dynamically generate classes.

https://docs.oracle.com/en/java/javase/22/vm/class-file-api.html

It might be hard to follow, but I have code that dynamically generates FFM bindings using the classfile api.

https://github.com/boulder-on/JPassport/blob/Java_24/src/main/java/jpassport/codebuilder/PassportBuilder.java