vendredi 9 janvier 2015

Can I obtain method parameter name using Java but with or with out reflection? [on hold]

Method



public void method(String a,String b,String C,...) {
///
}


How can I get a,b,c argument name? I want argument name


If there is a way to obtain method parameter names, i.e. given some method


public void a(int myIntParam, String theString) { ... }


get the strings "myIntParam" and "theString".


Problem: Actually I am passing parameter from excel sheet. I am using these thing in selenium web driver. Here a,b,c is a id's of object which I provided from excel and I want to retrieve these id's in a String.






Aucun commentaire:

Enregistrer un commentaire