title: How to write pointcut with customized annotation to print the global variable value that used in a function?
body: <p>I'm trying to log all the variables that method used to calculate something but I don't know how can I access to the specific global variables that method used:</p>
  
  <pre><code>  @BuAnnotation(funcName = "foo", category = BuAnnotation.Category.BU)
    @Scores(scoreName = "globalScoreVariableValue", category = Scores.Category.SC)
    def Boolean foo = {
      val globalScoreVariableValue = b.globalScoreVariable.value
      val checkValue = globalScoreVariableValue &gt; 2
      if (checkValue)
      {
        false
      }
      checkValue
    }
  </code></pre>
  
  <p>But I'm not sure how to handle the pointcut, since I tried many ways to write the retrieve it and the code doesn't reach it... </p>
  
  <p>is there anyway to make it happen? </p>
  
  <p>Thanks a lot</p>