code: public ClassDoc[] allClasses(boolean filter) {
          List<ClassDocImpl> classes = getClasses(filter);
          return classes.toArray(new ClassDocImpl[classes.length()]);
      }
docs: Get all classes (including Exceptions and Errors)
  and interfaces.
  @since J2SE1.4.
  
  @return all classes and interfaces in this package, filtered to include
  only the included classes if filter==true.