B4J Question Code / Class modules

Daestrum

Well-Known Member
Licensed 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

Well-Known Member
Licensed 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 .
 
Top