vendredi 6 avril 2018

Invoking Method when Parmaeter is instance of another class - Java

Ill try to make it short. I want to iterate through the methods of a class via "getMethods()". Now when the method has a Parameter which is an instance of the "Event" class, it should be invoked.

Example Method:

private void onEvent(ExampleEvent event) {...]

"ExampleEvent" is an instance of the "Event" class.

Help is appreciated!





Aucun commentaire:

Enregistrer un commentaire