Well as regard as point n. 3 below, I'm stuck between two methods with same name name and different parameters:
lookupInFormEnvironment(gnu.mapping.Symbol) and
lookupInFormEnvironment(gnu.mapping.Symbol, java.lang.Object)
this is the code which is not working ( exception= Throwable )
1// after reflection I got class "myCN", then I try to retrieve the method
2 // and then invoke it with parameter Field "f" which I got as per your point 2 below, not the name of field but the field itself
3 // I have tried other combinations of parameter even with
3 // lookupInFormEnvironment(gnu.mapping.Symbol, java.lang.Object) with parameter (f, f.get(myCN))
3 // with no success
4 Method getNameMethod = myCN.getClass().getMethod("lookupInFormEnvironment", gnu.mapping.Symbol.class);
5 Object myReflectedTask = getNameMethod.invoke(myCN, f);
6// not it works with parameter like 6
7 // then if the above code was successful, below I try to launch the procedure
8 // verify and launch task
9 if (myReflectedTask instanceof ModuleMethod){
10
11 ModuleMethod myRT = (ModuleMethod)myReflectedTask;
12 myRT.apply0(); }
I have no clue about correct parameter types in rows 4 and 5, can you kindly give a hint?
Thanks