How do I pass a class as a parameter in Java?

后端 未结 10 1158
遥遥无期
遥遥无期 2020-12-04 08:30

Is there any way to pass class as a parameter in Java and fire some methods from that class?

void main()
{
    callClass(that.class)
}

void callClass(???? c         


        
10条回答
  •  猫巷女王i
    2020-12-04 09:26

    As you said GWT does not support reflection. You should use deferred binding instead of reflection, or third party library such as gwt-ent for reflection suppport at gwt layer.

提交回复
热议问题