Hello,
Issue: How to properly construct search strings so that org.eclipse.jdt.core.search.SearchPattern#createPattern(String str .....)
gives the expected results.
Details:
I have the search engine infrastructure up and working. My problem is with creating properly formatted strings that the search engine understands.
The javadoc for org.eclipse.jdt.core.search.SearchPattern states:
Method patterns have the following syntax:
[declaringType '.'] ['<' typeArguments '>'] methodName ['(' parameterTypes ')'] [returnType]
With some samples:
java.lang.Runnable.run() void
main(*)
Problem:
How to you specify methods with 2 or more arguments? For instance if I want to find references that call:
Foo.bar(String, Integer)
or
List<String> ls = ....
Foo.Bar(ls) // a method that takes a typed collection.
Thanks.
[Updated on: Thu, 11 March 2010 23:57] by Moderator