Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] REPOST: Java Search: how to find methods with a specific parameter type?



(this is a repost of my newsgroup question to which i got no answer)

hi,
i'm looking for a way to find all occurrences of all:
- methods that have a particular type as a formal parameter type
- methods that have that particular type as a declared return type
- fields that have that particular type as a declared type

Ideas?

return type i know how to do - because we have it in Tips and Tricks
but the other 2 i don't know

here's what i did for now:
- i actually got handles for all these methods and fields, created one big
(ca. 20 parts) OR search pattern and searched for that
but it's very slow - looks like the size of the search patterns badly
affects the performance of search (even though none of the
sub-patterns contained wild-cards)

a.



Back to the top