title: loop through all classes that extend a certain class
body: <p>What I would like to do is loop through all of the classes that are extending a class i have called Cmd.</p>
  
  <p>For instance, what I'd like to be able to do is something like this:</p>
  
  <pre><code>for (Class&lt;?&gt; c : classesExtendingSuperclass) {
      cmds.put(c, c.getName());
  }
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>Edit: I can't use reflections in my project, if I do it will complicate everything when using the program. I can't use Reflections due to the performance downsides in the project.</p>