title: How to get all visible variables for a certain method in JDT
body: <p>I want to develop an Eclipse plug-in which get all visible variables for a specific method.
  For example: </p>
  
  <pre><code>public class testVariable {  
      String test1;  
      Object test2;
          void method_test1(){
              int test3,test4;
          }
          void method_test2(){
              int test5,test6;
              //get variable here!!!!
          }
  }
  </code></pre>
  
  <p>I just want to get visible variable is: <code>test1, test2,test5,test6</code> in method <code>method_test2</code>. What can I do?</p>