How to use boolean expressions in MatchXpath #14394
-
I need to find methods (marked with
in this example, I need to find the last two methods:
Could you please advise me how to combine queries through boolean expression? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
Please extend your example to contain code and share your entire MatchXpath module(s). |
Beta Was this translation helpful? Give feedback.
-
and here is queries which I use to find both conditions separately query to find method with
query to find method with
module example (here it is with both queries and will not work)
|
Beta Was this translation helpful? Give feedback.
-
this is how I use checkstyle
|
Beta Was this translation helpful? Give feedback.
-
if I use first query (to find methods with
that's OK, it finds |
Beta Was this translation helpful? Give feedback.
-
if I use second query (to find methods without
that's OK, it finds |
Beta Was this translation helpful? Give feedback.
-
but the question is, how to combine this two checks to find methods (marked with sorry, I've tried multiple ways to use boolean expressions here and can't find the right one, also documentation/stackoverflow/Googling doesn't help, seems I'm not familiar with syntax or even stupid, please help :) |
Beta Was this translation helpful? Give feedback.
-
I can definitely help the next time I am able to reach my laptop. Few things to consider in the meantime:
|
Beta Was this translation helpful? Give feedback.
-
@polyanskih this should do it:
|
Beta Was this translation helpful? Give feedback.
@polyanskih this should do it: