Another Structural search question

Is it possible to constrain matches on class to specific package (and
sub-packages)


3 comments

Surely, one can specify custom scope for needed package and subpackages

Alex Roytman wrote:

Is it possible to constrain matches on class to specific package (and
sub-packages)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

I mean not which classes to search but which classes to replace. For example
looking for $Class$.$MethodCall$($Parameter$) where $MethodCall$ matches
newINstance() will return calls to static factory methods defined in my code
but will also return matches to calls to SAFParserFactory which I do not
want to replace. Will scope help with hat sort of stuff?

"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> wrote in
message news:eftdbi$f06$1@is.intellij.net...

Surely, one can specify custom scope for needed package and subpackages

>

Alex Roytman wrote:

>> Is it possible to constrain matches on class to specific package (and
>> sub-packages)
>
>

--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"



0

Ok, my suggestion was really about search scope

You'd need to specify text constraint on $Class$, probably applied
within hierarchy

Alex Roytman wrote:

I mean not which classes to search but which classes to replace. For example
looking for $Class$.$MethodCall$($Parameter$) where $MethodCall$ matches
newINstance() will return calls to static factory methods defined in my code
but will also return matches to calls to SAFParserFactory which I do not
want to replace. Will scope help with hat sort of stuff?

"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> wrote in
message news:eftdbi$f06$1@is.intellij.net...

>>Surely, one can specify custom scope for needed package and subpackages
>>
>>Alex Roytman wrote:
>>
>>>Is it possible to constrain matches on class to specific package (and
>>>sub-packages)
>>
>>
>>--
>>Best regards,
>> Maxim Mossienko
>>IntelliJ Labs / JetBrains Inc.
>>http://www.intellij.com
>>"Develop with pleasure!"




--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.