aspose file tools
The moose likes Java in General and the fly likes getMethod Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "getMethod" Watch "getMethod" New topic
Author

getMethod

sun par
Ranch Hand

Joined: Oct 03, 2002
Posts: 257

I understand thru the api that name refers to method name, but what is the purpose of parameterTypes??
Thanks


Sunita<br />SCJP 1.4
Mark Fabrizio
Greenhorn

Joined: Mar 31, 2003
Posts: 7
I'm not sure, but I think that the Class[] parameters array is to distinguish between methods that might have the same name, but different arguments. I'm not sure if these have to be in the order declared in the method or not.
Junilu Lacar
Ranch Hand

Joined: Feb 26, 2001
Posts: 3008
Yes, they are; and yes, they do.
 
 
subject: getMethod
 
Threads others viewed
reflection - invoking Methods by Name!!!
java. lang .reflection .Method .invoke()
Calling Methods with strings??
Reflection
getMethod(); - reflection problem

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture