In GWT, this is not real, since in production mode the code is highly optimized by lining and removing unreachable code. For instance. in compiled mode, most functions do not belong to any class, because GWT considered the class definition redundancy. Theoretically, you can find the class of the caller (if you try to analyze the compilation report or through JSNI), but due to optimization of embedding you will get many strange results (for example, even if you work, only a certain class is called, in compiled mode you can find that it is called directly from the onLoad entry point)
source share