Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [Java Search] search for methods by return type (and parameter types)?
[Java Search] search for methods by return type (and parameter types)? [message #6613] Sun, 27 April 2003 21:55 Go to next message
Tom Roche is currently offline Tom RocheFriend
Messages: 160
Registered: July 2009
Senior Member
Is there a way to search for methods by return type, as well as
parameter types? If so, how? and are there preferences that must be
set to enable this?

If not, I'll make a feature request (if not made already ...)
Re: [Java Search] search for methods by return type (and parameter types)? [message #7353 is a reply to message #6613] Mon, 28 April 2003 12:51 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
Yes. You can search using the following pattern (assuming that X is the
return type, and Y and Z are the paramter types):
"*(Y, Z) X"

Jerome

"Tom Roche" <tlroche@us.ibm.com> wrote in message
news:b8hjjm$m31$1@rogue.oti.com...
> Is there a way to search for methods by return type, as well as
> parameter types? If so, how? and are there preferences that must be
> set to enable this?
>
> If not, I'll make a feature request (if not made already ...)
>
Re: [Java Search] search for methods by return type (and parameter types)? [message #7395 is a reply to message #7353] Mon, 28 April 2003 14:58 Go to previous messageGo to next message
Tom Roche is currently offline Tom RocheFriend
Messages: 160
Registered: July 2009
Senior Member
Tom Roche wrote:
>> Is there a way to search for methods by return type, as well as
>> parameter types?

Jerome Lanneluc wrote:
> Yes. You can search using the following pattern (assuming that X is
> the return type, and Y and Z are the paramter types): "*(Y, Z) X"

Doh! Merci: I had tried

X *(Y, Z)

which makes more sense (to me, at least :-), since that's the order in
which one declares a method. I wonder why <whoever> decided to require
return-type-last?
Re: [Java Search] search for methods by return type (and parameter types)? [message #7407 is a reply to message #7395] Mon, 28 April 2003 15:17 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
Maybe because searching with a given return type is less used...

I bet that if it was the opposite, people would complain as well :-)

"Tom Roche" <tlroche@us.ibm.com> wrote in message
news:3EAD4190.5070209@us.ibm.com...
> Tom Roche wrote:
> >> Is there a way to search for methods by return type, as well as
> >> parameter types?
>
> Jerome Lanneluc wrote:
> > Yes. You can search using the following pattern (assuming that X is
> > the return type, and Y and Z are the paramter types): "*(Y, Z) X"
>
> Doh! Merci: I had tried
>
> X *(Y, Z)
>
> which makes more sense (to me, at least :-), since that's the order in
> which one declares a method. I wonder why <whoever> decided to require
> return-type-last?
>
Re: [Java Search] search for methods by return type (and parameter types)? [message #7426 is a reply to message #6613] Mon, 28 April 2003 15:41 Go to previous messageGo to next message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
Could you give an example of what you're looking for ?

"Tom Roche" <tlroche@us.ibm.com> wrote in message
news:b8hjjm$m31$1@rogue.oti.com...
> Is there a way to search for methods by return type, as well as
> parameter types? If so, how? and are there preferences that must be
> set to enable this?
>
> If not, I'll make a feature request (if not made already ...)
>
Re: [Java Search] search for methods by return type (and parameter types)? [message #7492 is a reply to message #7426] Mon, 28 April 2003 16:11 Go to previous message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
Ignore my post.

"Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
news:b8ji2p$4bj$1@rogue.oti.com...
> Could you give an example of what you're looking for ?
>
> "Tom Roche" <tlroche@us.ibm.com> wrote in message
> news:b8hjjm$m31$1@rogue.oti.com...
> > Is there a way to search for methods by return type, as well as
> > parameter types? If so, how? and are there preferences that must be
> > set to enable this?
> >
> > If not, I'll make a feature request (if not made already ...)
> >
>
>
Previous Topic:Execute "Organize Imports" from within code?
Next Topic:Getting unexpected exceptions in multiple plugins
Goto Forum:
  


Current Time: Wed Jul 17 16:24:59 GMT 2024

Powered by FUDForum. Page generated in 0.79657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top