title: How to have nested conditions for PMD Xpath rules
body: <p>My rule requires me to apply them only to methods without 'get' as part of their name. In another words, my rules need to apply to only non-getter methods in the class. I know to get a hold of all the non-getter methods, I can use </p>
  
  <pre><code>//MethodDeclarator[not(contains(@Image,'get'))]
  </code></pre>
  
  <p>However, I don't know the syntax about where I insert my logic for the rules. Is it like </p>
  
  <pre><code>//MethodDeclarator[
  not(contains(@Image,'get'))
  
   'Some Rule Statements' 
  ]
  </code></pre>
  
  <p>I saw the use of . in the beginning of statement inside [] in some example code. what are they used for? </p>
  
  <p>In my particular case, I need to combine following pieces together but so far I am unable to accomplish it yet. </p>
  
  <p>Piece 1: </p>
  
  <pre><code> //PrimaryExpression[not(PrimarySuffix/Arguments)]
  </code></pre>
  
  <p>Piece 2: </p>
  
  <pre><code> //MethodDeclarator[not(contains(@Image,'get'))]
  </code></pre>
  
  <p>Piece 3:</p>
  
  <pre><code> //PrimaryExpression[PrimaryPrefix/@Label='this']
  </code></pre>