Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

paran name

 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic