title: Parse Jar file and find relationships between classes?
body: <p>How to detect  whether the class from the jar file is extending other class or if there are method calls to other class objects or other class objects are created ? 
  and then system out  which class extend which class and which class called methods from which class .</p>
  
  <p>Im using Classparser to parser the jar . here is part of my code :</p>
  
  <pre><code>        String jarfile = "C:\\Users\\OOOO\\Desktop\\Sample.Jar";
  
          jar = new JarFile(jarfile);
          Enumeration&lt;JarEntry&gt; entries = jar.entries();
          while (entries.hasMoreElements()) {
              JarEntry entry = entries.nextElement();
              if (!entry.getName().endsWith(".class")) {
                  continue;
              }
  
              ClassParser parser = new ClassParser(jarfile, entry.getName());
              JavaClass javaClass = parser.parse();
  </code></pre>