Skip to main content



      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 17:55 Go to next message
Eclipse UserFriend
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 08:51 Go to previous messageGo to next message
Eclipse UserFriend
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 10:58 Go to previous messageGo to next message
Eclipse UserFriend
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 11:17 Go to previous messageGo to next message
Eclipse UserFriend
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 11:41 Go to previous messageGo to next message
Eclipse UserFriend
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 12:11 Go to previous message
Eclipse UserFriend
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: Sat May 10 15:46:00 EDT 2025

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

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

Back to the top