Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] IMethod changes

For compatibility, as it's called in a few places, actually we can drop it.

Regards,
Alex

----- Original Message -----
From: "Johan Compagner" <jcompagner@xxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Monday, February 15, 2010 5:24:08 PM GMT +06:00 Almaty, Novosibirsk
Subject: Re: [Dltk-dev] IMethod changes

why still the getParameterNames() ?
Would it be cleaner just to have getParameters() that returns the IParameter Array?


On Mon, Feb 15, 2010 at 11:42, Alex Panchenko <alex@xxxxxxxxx> wrote:
Hi all,

I want to perform the following change, as some languages might have types for method parameters:

public interface IParameter {
       String getName();
       String getType();
       String getDefaultValue();
}

 public interface IMethod extends IMember {

-       public String[] getParameters() throws ModelException;
+       public String[] getParameterNames() throws ModelException;

-       public String[] getParameterInitializers() throws ModelException;
+       public IParameter[] getParameters() throws ModelException;

       boolean isConstructor() throws ModelException;
...

Are there any objections/other naming ideas?

Regards,
Alex
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


_______________________________________________ dltk-dev mailing list dltk-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dltk-dev

Back to the top