code: protected void generateClassFiles(RootDoc root, ClassTree classtree) {
          generateClassFiles(classtree);
          PackageDoc[] packages = root.specifiedPackages();
          for (PackageDoc pkg : packages) {
              generateClassFiles(pkg.allClasses(), classtree);
          }
      }
docs: Iterate through all classes and construct documentation for them.
  
  @param root      the RootDoc of source to document.
  @param classtree the data structure representing the class tree.