| Author |
paran name
|
R K Singh
Ranch Hand
Joined: Oct 15, 2001
Posts: 5369
|
|
Hi I have searched refelection API's but I could not found the way to get the mathod's parameter name. so if ane1 ther can help ??? Thanks in advance ------------------ Regards Ravish
|
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
|
 |
Sean MacLean
author
Ranch Hand
Joined: Nov 07, 2000
Posts: 621
|
|
Not being an expert of reflection, I'd offer that since compiled java classes to not retained variable names (as those used method signatures), then they will not be available using reflection. Variable names are more for the convenience of the programmer, not the program. Sean
|
 |
R K Singh
Ranch Hand
Joined: Oct 15, 2001
Posts: 5369
|
|
I just got something ... *JDI* going through it ... will inform u all if got it ... THanks a lot ------------------ Regards Ravish
|
 |
R K Singh
Ranch Hand
Joined: Oct 15, 2001
Posts: 5369
|
|
You can get param name by using JDI(Java Debugger Interface). Requirement: 1. jpda.jar file in your class path ( JPDA - Java Platform Debugger Architecture Ref: http://java.sun.com/j2se/1.3/docs/guide/jpda/index.html ) 2. JDI (Java Debugger Interface) APIs (Ref: http://java.sun.com/j2se/1.3/docs/guide/jpda/jdi/index.html ) 3. Classic VM in J2SE 1.2.2 or above. (Ref: http://java.sun.com/products/jpda/readme.html ) 4. Java file whose method args to know, should be compiled with -g option.(Ref: http://java.sun.com/products/jpda/faq.html#QM1 ) Thanks to all ------------------ Regards Ravish [This message has been edited by ravish kumar (edited November 23, 2001).]
|
 |
 |
|
|
subject: paran name
|
|
|