Javaflow is a continuation implementation, it will probably let you do that. It uses bytecode manipulation though.
Anyway, it feels like you’re trying to do OOP with plain C. It’s doable but it doesn’t mean you should do it.
More Related Contents:
- java vs C++ in pre and post increment
- Connect Java to a MySQL database
- Migrating from JSF 1.2 to JSF 2.0
- Can’t get ArrayIndexOutOfBoundsException from Future and SwingWorker if thread starts Executor
- When to choose checked and unchecked exceptions
- Static method in a generic class?
- Deploying Spring 5.x on Tomcat 10.x
- Convert RGB values to color name
- Calculate elapsed time in Java / Groovy
- Change background color of one cell in JTable [duplicate]
- Changing String date format
- Proper way to close an AutoCloseable
- is the Java HashMap keySet() iteration order consistent?
- Simple way to count character occurrences in a string [duplicate]
- Why can this generic method with a bound return any type?
- What’s the best way to implement `next` and `previous` on an enum type?
- How to stop parsing xml document with SAX at any time?
- out in System.out.println()
- How can I start a new android activity using class name in a string?
- RxJava instead of AsyncTask?
- How to unload library (DLL) from the JVM
- Change file owner group under Linux with java.nio.Files
- Configure Tomcat to use properties file to load DB connection information
- In Java, how do I access the outer class when I’m not in the inner class?
- Reading binary file from URLConnection
- Is there any way to pass a Java Array to C through JNI without making a copy of it?
- What is the difference between `opencv.android.JavaCameraView` and `opencv.android.NativeCameraView`
- JavaFX Alerts and their size
- javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary
- Regarding thread safety of servlet [duplicate]