More structural search.
Righto... sorry for yet another structural search question but this one has
me confused:
I'm trying to find all setters that accept a single String parameter.
My expression is:
public void $setter$($type$ $var$)
{
$expression$
}
with the constraints:
$setter$
Text / regular expression: set.*
$type$
Java expression type: String
$expression$
max matches 10000
But I get the following error:
The pattern is malformed or unsupported. Not helpful in trying to figure
out what the problem is.
Please sign in to leave a comment.
Hi,
The easiest way to find what you are looking for is to pickup 'methods
of the class' built-in pattern and specialize the pattern to have one
string parameter.
Glen Stampoultzis wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
What worked. I'm wondering what's wrong with my original though.
"Maxim Mossienko" <Maxim.Mossienko@jetbrains.com> wrote in message
news:cd08ti$avu$2@is.intellij.net...
>
>
>
has
figure
>
>
Hi,
The pattern was not recognized (it does parse from
class/expression/statement position level so just method declaration is
not adequate pattern)
Glen Stampoultzis wrote:
>>Hi,
>>
>>The easiest way to find what you are looking for is to pickup 'methods
>>of the class' built-in pattern and specialize the pattern to have one
>>string parameter.
>>
>>Glen Stampoultzis wrote:
>>
>>
>>>Righto... sorry for yet another structural search question but this one
>>>me confused:
>>>
>>>I'm trying to find all setters that accept a single String parameter.
>>>
>>>My expression is:
>>>
>>>public void $setter$($type$ $var$)
>>>{
>>> $expression$
>>>}
>>>
>>>with the constraints:
>>>
>>>$setter$
>>> Text / regular expression: set.*
>>>$type$
>>> Java expression type: String
>>>$expression$
>>> max matches 10000
>>>
>>>But I get the following error:
>>>
>>>The pattern is malformed or unsupported. Not helpful in trying to
>>>out what the problem is.
>>>
>>>
>>>
>>>
>>>
>>
>>
>>--
>>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!"
It would help if the error dialog explained this.
"Maxim Mossienko" <Maxim.Mossienko@jetbrains.com> wrote in message
news:cd2u9g$p1i$1@is.intellij.net...
>
>
>
one
>
>