aspose file tools*
The moose likes Java in General and the fly likes paran name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "paran name" Watch "paran name" New topic
Author

paran name

R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
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: 5371
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: 5371
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: paran name