Bug 25163

Summary: AST DCR: Parameter names in IMethodBinding
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-10-22 05:15:54 EDT
20021018

IMethodBinding returns the parameter types. I now would need the parameter 
names.
Could the IMethodBinding return them?

I know that this is an exotic wish, and that a IMethodBinding doesn't really 
need to know about parameter names. I'm fine if you close this if it is not 
trivial.
Comment 1 Olivier Thomann CLA 2002-10-22 08:22:09 EDT
I think this doesn't make sense. The IMethodBinding is an object that represents
the "resolved" information of its corresponding MethodDeclaration. The names of
the parameters have nothing to do with resolved information.
If you want the parameter names, then simply get the declaring node and iterate
the parameters collection. You can get the names of each parameter by asking the
name of the corresponding SingleVariableDeclaration.
Ok to close?
Comment 2 Martin Aeschlimann CLA 2002-10-22 08:33:18 EDT
ok to close.
Comment 3 Olivier Thomann CLA 2002-10-22 08:44:26 EDT
Closing as INVALID.