title: How to get all imports defined in a class using java reflection?
body: <p>Hi i am new in java reflection domain.So can anyone guide me in this problem scenario.</p>
  
  <p>I have a <strong>class</strong> named <strong>"SomClass.java"</strong> and it <strong>imports a package</strong> named <strong>"SomPackage.RefClass"</strong>  And some other java libraries like java.lang.. etc.</p>
  
  <p><strong>Now i wish to get know all the imports defined in a class through reflection.</strong></p>
  
  <pre><code>import SomPackage.RefClass;
  import java.lang.reflect.Field;
  import java.io.IOException; 
   public class SomeClass{
    RefClass refClass_Obj;
    String nationality;
  ///some other members
  }
  </code></pre>
  
  <p><strong><em>I just wanna know the list of all import defined in a class using reflection.</em></strong></p>
  
  <p><em>I have seen a <a href="https://stackoverflow.com/questions/4884221/java-reflecting-on-method-scope-variables">Question</a> posted hear similar to my Q but it is not well elaborated so,need some good direction of help.</em></p>
  
  <p>thanks in advance.   </p>