How to get the value of the arguments of the sonar tree
<p>I'm writing a custom rule for SonarQube for java, I want to check if the value of an argument is qualified. For example, I want to know if the String fit the specific pattern. I can only test if the argument is a String, but I can not get the exact value. Does the API allows me to do so? </p>

<p>For example, for the code below</p>

<pre><code>log.error("errorID:210134 It's an error");
</code></pre>

<p>Can I get the argument and test if the string contains errorID?</p>

<p>Besides, can I get what variable did the method invocation?</p>

<p>For example, for the code below</p>

<pre><code>log.error("errorID:210134 It's an error");
</code></pre>

<p>How can I know that log is an Object of the class Logger?</p>