B4J Question Code / Class modules

Daestrum

Expert
Licensed User
Longtime User
Is there an easier way to determine if a module is a code module or a class module that I call from java code?

I currently search for "_class_globals" in the methods to determine if it's a class module.
 

Daestrum

Expert
Licensed User
Longtime User
Because the methods parameters on an invoke differ between a class and code module.
I want to ensure the handler class passed to a java bridge routine is a class module, so I set the instance for the invoke, whereas a code module can suffice with null as the instance.

It's for use with upcalls from a webview to B4J .
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Ok, I will probably stick to how I am currently checking.
 
Upvote 0
Top