title: Scanning Java package for annotations
body: <p>I want to implement logic that will recursively scan for annotated classes.  I can scan the package structure without issue:</p>
  
  <pre><code>Stack&lt;Package&gt; stack = new Stack&lt;Package&gt;();
  stack.push(Package.getPackage(ROOT_PACKAGE));
  while(!stack.isEmpty()) {
      Package temp = stack.pop();             
      annotatedClasses.addAll(getAnnotatedClasses(temp));         
      for(Package p : temp.getPackages()) {
          stack.push(p);
      }
  }
  </code></pre>
  
  <p>Where I've come unstuck is that I can't seem to find a way to implement this method:</p>
  
  <pre><code>public List&lt;Class&gt; getAnnotatedClasses(Package p);
  </code></pre>
  
  <p>Given a Package object is there a way to get all Classes within it?</p>